From 7f61dec9982a8d740d5b2b197cdf9749411a0a80 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 20 Oct 2017 16:12:15 +0200 Subject: Introduce variable GIT_TRANPSPORT. --- bin/sbuild-deb-package | 3 ++- home/.buildscripts/arctica.conf | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/sbuild-deb-package b/bin/sbuild-deb-package index 7278206..4d81bd6 100755 --- a/bin/sbuild-deb-package +++ b/bin/sbuild-deb-package @@ -20,6 +20,7 @@ export PATH="${HOME}/bin:${PATH}" GIT_USER="gituser" +GIT_TRANSPORT="https" GIT_HOSTNAME="git.mydomain.org" DEBEMAIL="firstname.lastname@mydomain.org" @@ -132,7 +133,7 @@ prepare_workspace() { cd ${my_WORKDIR} if [ ! -d ${PROJECT}/.git ]; then - git clone --no-hardlinks --no-local "git://${GIT_HOSTNAME}/${PROJECT_PATH}.git" + git clone --no-hardlinks --no-local "${GIT_TRANSPORT}://${GIT_HOSTNAME}/${PROJECT_PATH}.git" cd "${PROJECT}" git checkout --force "${CHECKOUT}" || git checkout --force -b "${CHECKOUT}" diff --git a/home/.buildscripts/arctica.conf b/home/.buildscripts/arctica.conf index 898f6fe..218cc46 100644 --- a/home/.buildscripts/arctica.conf +++ b/home/.buildscripts/arctica.conf @@ -2,6 +2,7 @@ GIT_USER="" GIT_HOSTNAME="cgit.arctica-project.org" +GIT_TRANSPORT="git" GIT_SSH_PORT="" DEBEMAIL="build-daemon+${HOSTNAME}@arctica-project.org" -- cgit v1.2.3