X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=svn%2Fsvn2git;h=5c68c17248f5bad2765fa81eaf128e9cb5c16987;hb=7f923927d1c434b0ea0853bfeea5ff5ef3fc08fe;hp=b225f69e6ff3c7ce03997d523297b84ccd9e2b43;hpb=4c9d54c78f3d342cab528b0baacca9e56aba7b2f;p=git-scripts.git diff --git a/svn/svn2git b/svn/svn2git index b225f69..5c68c17 100755 --- a/svn/svn2git +++ b/svn/svn2git @@ -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