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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 15 13:50:43 PST 2019


Author: martinl
Date: 2019-02-15 13:50:43 -0800 (Fri, 15 Feb 2019)
New Revision: 74093

Modified:
   grass-addons/tools/svn2git/3-rewrite-messages.sh
Log:
svn2git: git filter-branch with --all option already rewrites all branches and tags

Modified: grass-addons/tools/svn2git/3-rewrite-messages.sh
===================================================================
--- grass-addons/tools/svn2git/3-rewrite-messages.sh	2019-02-15 21:45:57 UTC (rev 74092)
+++ grass-addons/tools/svn2git/3-rewrite-messages.sh	2019-02-15 21:50:43 UTC (rev 74093)
@@ -10,13 +10,9 @@
     
     # Fix commit messages (#x -> https://trac.osgeo.org/...)
     git reset --hard HEAD
-    for b in `git branch | cut -c 3-`; do
-        echo $b
-        git checkout $b
-        git filter-branch --msg-filter "python  $SCRIPTPATH/rewrite.py" -- --all
-        mv /tmp/log_touched.txt ../log_${repo}_${b}_touched.txt
-        mv /tmp/log_untouched.txt ../log_${repo}_${b}_untouched.txt
-    done
+    git filter-branch --msg-filter "python  $SCRIPTPATH/rewrite.py" -- --all
+    mv /tmp/log_touched.txt ../log_${repo}__touched.txt
+    mv /tmp/log_untouched.txt ../log_${repo}_untouched.txt
 
     cd ..
 }



More information about the grass-commit mailing list