summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-04 18:55:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-04 18:55:24 +0000
commit0537621ec3c1e5d88e164f48c760e04deb42d0dc (patch)
treeaf78ec30c26bac9f218f36cc46264de30ce0e809
parentUpdating. (diff)
downloadprogress-linux-tools-0537621ec3c1e5d88e164f48c760e04deb42d0dc.tar.xz
progress-linux-tools-0537621ec3c1e5d88e164f48c760e04deb42d0dc.zip
Updating.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-xbin/git-new.sh12
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