diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2011-12-21 00:18:15 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2011-12-21 00:18:15 +0100 |
commit | db9cf4ebce4eaa26767ea30dee085021a4aec242 (patch) | |
tree | 069e665e06dec8b5b18fd341fac9c52947141f18 /bin/gitcreate | |
parent | 0aa148fdd5fec10290622f32bede3c640a0a153a (diff) | |
download | buildscripts-db9cf4ebce4eaa26767ea30dee085021a4aec242.tar.gz buildscripts-db9cf4ebce4eaa26767ea30dee085021a4aec242.tar.bz2 buildscripts-db9cf4ebce4eaa26767ea30dee085021a4aec242.zip |
add a PREFIX-public git-remote site for each public location
Diffstat (limited to 'bin/gitcreate')
-rwxr-xr-x | bin/gitcreate | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/gitcreate b/bin/gitcreate index 159b298..3d93faf 100755 --- a/bin/gitcreate +++ b/bin/gitcreate @@ -20,6 +20,7 @@ for pkg in "$@"; do git branch | grep upstream &>/dev/null && echo "$pkg: RELEASE BRANCH" && git push ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg} upstream git branch | grep pristine-tar &>/dev/null && echo "$pkg: PRISTINE-TAR" && git push ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg} pristine-tar echo "$pkg: PUSHING TAGS" && git push --tags ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg} - git remote add origin ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg} + git remote | grep origin >/dev/null || git remote add origin ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg} + git remote add ${PREFIX}-public ssh://$GIT_USER@$GIT_HOSTNAME:$GIT_SSH_PORT/~/git/${subdir}${pkg} cd .. done |