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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 26 14:50:31 PDT 2018


Author: martinl
Date: 2018-09-26 14:50:31 -0700 (Wed, 26 Sep 2018)
New Revision: 73428

Modified:
   grass-addons/tools/svn2git/migrate.sh
Log:
svn2git: fix removing remote branches

Modified: grass-addons/tools/svn2git/migrate.sh
===================================================================
--- grass-addons/tools/svn2git/migrate.sh	2018-09-26 21:38:49 UTC (rev 73427)
+++ grass-addons/tools/svn2git/migrate.sh	2018-09-26 21:50:31 UTC (rev 73428)
@@ -28,10 +28,10 @@
     git branch -D $i
 done
 
-# Remove origin branches
-# for i in `git branch -r | grep origin`; do echo "git push origin --delete $i"; done
+# Remove remote branches
+for i in `git branch -r | grep origin`; do git branch -dr $i; done
 
 # Fix commit messages (#x -> https://trac.osgeo.org/...)
 git reset --hard HEAD && git checkout master
-git filter-branch --msg-filter 'python  ../rewrite.py' -- --all
+# git filter-branch --msg-filter 'python  ../rewrite.py' -- --all
 # check out /tmp/log.txt for changes overview ...



More information about the grass-commit mailing list