[GRASS-SVN] r74177 - grass-addons/tools/svn2git

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 7 09:33:34 PST 2019


Author: martinl
Date: 2019-03-07 09:33:34 -0800 (Thu, 07 Mar 2019)
New Revision: 74177

Modified:
   grass-addons/tools/svn2git/3-rewrite-messages.sh
Log:
svn2git: checkout branches before pushing

Modified: grass-addons/tools/svn2git/3-rewrite-messages.sh
===================================================================
--- grass-addons/tools/svn2git/3-rewrite-messages.sh	2019-03-07 17:31:53 UTC (rev 74176)
+++ grass-addons/tools/svn2git/3-rewrite-messages.sh	2019-03-07 17:33:34 UTC (rev 74177)
@@ -21,6 +21,12 @@
     mv /tmp/log_touched.txt ../log_${src}_touched.txt
     mv /tmp/log_untouched.txt ../log_${src}_untouched.txt
 
+    # checkout branches for easy pushing
+    for branch in `git branch -r | grep '^  origin/release' | sed 's#  origin/##g'`; do
+        git branch $branch origin/$branch
+        git checkout $branch
+    done
+
     cd ..
 }
 



More information about the grass-commit mailing list