]> git.phdru.name Git - git-scripts.git/blobdiff - svn/svn2git
Fix: No need to run `git repack`
[git-scripts.git] / svn / svn2git
index d5853daa88e1e28da6a2b620727b17e9fb77df21..f8ae407835d2aa637d025312b6558ff6c1007ae3 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
 
@@ -55,6 +55,6 @@ cp -p ../authors.txt .git/info &&
 git config --local --path svn.authorsfile .git/info/authors.txt
 
 git svn gc &&
-git repack -a -d -f --depth=250 --window=250 &&
+git gc --aggressive &&
 echo "Cloned from $url using git-svn" >.git/description &&
-exec "${VISUAL:-${EDITOR:-vi}}" .git/description
+exec `git var GIT_EDITOR` .git/description