summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-10-20 16:12:15 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-10-20 16:12:15 +0200
commit7f61dec9982a8d740d5b2b197cdf9749411a0a80 (patch)
tree74b114fd0f155d6493e0454a002b06fa277a5009
parentb1780cf913b54f4c03c74a11ba28dcc065c9d491 (diff)
downloadbuildscripts-7f61dec9982a8d740d5b2b197cdf9749411a0a80.tar.gz
buildscripts-7f61dec9982a8d740d5b2b197cdf9749411a0a80.tar.bz2
buildscripts-7f61dec9982a8d740d5b2b197cdf9749411a0a80.zip
Introduce variable GIT_TRANPSPORT.
-rwxr-xr-xbin/sbuild-deb-package3
-rw-r--r--home/.buildscripts/arctica.conf1
2 files changed, 3 insertions, 1 deletions
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"