From 0537621ec3c1e5d88e164f48c760e04deb42d0dc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 4 Apr 2022 20:55:24 +0200 Subject: Updating. Signed-off-by: Daniel Baumann --- bin/git-new.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/git-new.sh b/bin/git-new.sh index e5fe8ef..6a5bcb5 100755 --- a/bin/git-new.sh +++ b/bin/git-new.sh @@ -15,15 +15,19 @@ shift 1 PACKAGES="${@}" +SSH_OPTIONS="" + case "${DISTRIBUTION}" in *-extras) ORIGIN="progress-linux" BRANCH="progress-linux" + SSH_OPTIONS="-o ControlMaster=no" ;; *-backports) ORIGIN="debian-backports" BRANCH="progress-linux" + SSH_OPTIONS="-o ControlMaster=no" ;; daniel*) @@ -31,11 +35,13 @@ case "${DISTRIBUTION}" in DISTRIBUTION="" ORIGIN="debian" BRANCH="debian" + SSH_OPTIONS="-i ~/.ssh/keys/daniel.baumann@progress-linux.org -o ControlMaster=no" ;; *) ORIGIN="debian" BRANCH="progress-linux" + SSH_OPTIONS="-o ControlMaster=no" ;; esac @@ -43,7 +49,7 @@ for PACKAGE in ${PACKAGES} do REPOSITORY="$(echo ${CATEGORY}/${DISTRIBUTION}/${PACKAGE} | sed -e 's|//|/|g')" - ssh git@git.progress-linux.org create ${REPOSITORY} - ssh git@git.progress-linux.org desc ${REPOSITORY} ${ORIGIN}: ${PACKAGE} - ssh git@git.progress-linux.org symbolic-ref ${REPOSITORY} HEAD refs/heads/${BRANCH} + ssh ${SSH_OPTIONS} git@git.progress-linux.org create ${REPOSITORY} + ssh ${SSH_OPTIONS} git@git.progress-linux.org desc ${REPOSITORY} ${ORIGIN}: ${PACKAGE} + ssh ${SSH_OPTIONS} git@git.progress-linux.org symbolic-ref ${REPOSITORY} HEAD refs/heads/${BRANCH} done -- cgit v1.2.3