. ./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