From db9cf4ebce4eaa26767ea30dee085021a4aec242 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 21 Dec 2011 00:18:15 +0100 Subject: add a PREFIX-public git-remote site for each public location --- bin/gitcreate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/gitcreate') 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 -- cgit v1.2.3