diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-04-04 18:55:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-04-04 18:55:24 +0000 |
commit | 0537621ec3c1e5d88e164f48c760e04deb42d0dc (patch) | |
tree | af78ec30c26bac9f218f36cc46264de30ce0e809 /bin | |
parent | Updating. (diff) | |
download | progress-linux-tools-0537621ec3c1e5d88e164f48c760e04deb42d0dc.tar.xz progress-linux-tools-0537621ec3c1e5d88e164f48c760e04deb42d0dc.zip |
Updating.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 |