]> git.phdru.name Git - git-scripts.git/blobdiff - svn/svn2git
pull-usrlocalsrc: add git-remote-hg to PATH
[git-scripts.git] / svn / svn2git
index b225f69e6ff3c7ce03997d523297b84ccd9e2b43..5c68c17248f5bad2765fa81eaf128e9cb5c16987 100755 (executable)
@@ -27,7 +27,7 @@ fi
 git svn clone "$url" --authors-file=authors.txt --prefix=svn/ --stdlayout "$dir" &&
 cd "$dir" &&
 
-# Convert tags and branches
+# Convert branches and tags
 
 # See http://blog.jessitron.com/2013/08/converting-from-svn-to-git.html
 
@@ -56,5 +56,6 @@ git config --local --path svn.authorsfile .git/info/authors.txt
 
 git svn gc &&
 git gc --aggressive &&
+git repack -a -d -f --depth=20 --window=250 &&
 echo "Cloned from $url using git-svn" >.git/description &&
-exec "${VISUAL:-${EDITOR:-vi}}" .git/description
+exec `git var GIT_EDITOR` .git/description