diff options
Diffstat (limited to '')
-rwxr-xr-x | bin/git-new.sh | 12 |
1 files 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 |