From e7dc3f2b1701b99c7a105b99d09614faaf652690 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 21 Feb 2013 10:23:18 +0100 Subject: [PATCH] Fix pushtags to update both repos --- bacula/release/pushtags | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/bacula/release/pushtags b/bacula/release/pushtags index 4ec85e1bb4..7799995b04 100755 --- a/bacula/release/pushtags +++ b/bacula/release/pushtags @@ -5,18 +5,25 @@ . ./config +push() +{ + for i in $bacula $docs ; do + cd $i + current=`git branch | awk '/*/ { print $2 }'` + git checkout ${branch} + git push ${1} ${branch} + git push ${1} tag ${fulltag} + echo "Pushed ${1} and git push ${1} tag ${fulltag} in $i" + git checkout ${current} + done +} + echo "Updating repo and tags for release version: ${ver}" cd $cwd fulltag=Release-$ver -for i in $bacula $docs ; do - cd $i - current=`git branch | awk '/*/ { print $2 }'` - git checkout ${branch} - git push ${remote} ${branch} - git push ${remote} tag ${fulltag} - echo "Pushed ${remote} and git push ${remote} tag ${fulltag} in $i" - git checkout ${current} -done +# Push to both remotes +push ${remote} +push bacula -- 2.39.5