X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=svn%2Fsvn2git;h=ab89784f4803ee4c4427a7d22022cf82d226d65c;hb=b3a97851e17d472c9bbb3e738647569c655cf6ea;hp=6ca904c16eda2d540008282d8f6b4dc059fc169d;hpb=ea428ed4a72a5ee839abf6f84aeaf4e72bcf20ce;p=git-scripts.git diff --git a/svn/svn2git b/svn/svn2git index 6ca904c..ab89784 100755 --- a/svn/svn2git +++ b/svn/svn2git @@ -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' | @@ -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