From: Kern Sibbald Date: Thu, 21 Feb 2013 09:23:18 +0000 (+0100) Subject: Fix pushtags to update both repos X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e7dc3f2b1701b99c7a105b99d09614faaf652690;p=bacula%2Fbacula Fix pushtags to update both repos --- 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