[GRASS-SVN] r73528 - grass-addons/tools/svn2git
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 13 12:56:35 PDT 2018
Author: martinl
Date: 2018-10-13 12:56:34 -0700 (Sat, 13 Oct 2018)
New Revision: 73528
Modified:
grass-addons/tools/svn2git/migrate.sh
Log:
svn2git: re-enable metadata, fix msg-filter caller
Modified: grass-addons/tools/svn2git/migrate.sh
===================================================================
--- grass-addons/tools/svn2git/migrate.sh 2018-10-13 18:14:20 UTC (rev 73527)
+++ grass-addons/tools/svn2git/migrate.sh 2018-10-13 19:56:34 UTC (rev 73528)
@@ -3,7 +3,7 @@
# Initialize git repo (preferably use AUTHORS.txt from SVN)
mkdir grass-gis-git ; cd grass-gis-git
-git svn init --stdlayout --no-metadata https://svn.osgeo.org/grass/grass
+git svn init --stdlayout https://svn.osgeo.org/grass/grass # --no-metadata
git svn --authors-file=../AUTHORS.txt fetch
# Create local branches
@@ -33,5 +33,7 @@
# Fix commit messages (#x -> https://trac.osgeo.org/...)
git reset --hard HEAD && git checkout master
-git filter-branch --msg-filter 'python ../rewrite.py' -- --all
+SCRIPT=`realpath $0` # realpath is a separate package and doesn't need to be installed
+SCRIPTPATH=`dirname $SCRIPT`
+git filter-branch --msg-filter "python $SCRIPTPATH/rewrite.py" -- --all
# check out /tmp/log.txt for changes overview ...
More information about the grass-commit
mailing list