]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix pushtags to update both repos
authorKern Sibbald <kern@sibbald.com>
Thu, 21 Feb 2013 09:23:18 +0000 (10:23 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:11 +0000 (14:51 +0200)
bacula/release/pushtags

index 4ec85e1bb490d995020565841519b961fd6a5e68..7799995b044318b64ce3ecfaf91ad8ec36875b52 100755 (executable)
@@ -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