]> git.phdru.name Git - git-scripts.git/blobdiff - svn/svn2git
Feat(update-remotes): Force-push branches to `web`
[git-scripts.git] / svn / svn2git
index dde280f4f77b485960389d3b960100619ddf9e27..ab89784f4803ee4c4427a7d22022cf82d226d65c 100755 (executable)
@@ -29,7 +29,7 @@ cd "$dir" &&
 
 # Convert branches and tags
 
-# See http://blog.jessitron.com/2013/08/converting-from-svn-to-git.html
+# See https://jessitron.com/2013/08/17/converting-from-svn-to-git/
 
 git for-each-ref --format="%(refname:short)" refs/remotes/svn |
    sed 's#svn/##' | grep -v '^tags' |
@@ -56,6 +56,5 @@ 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