X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=svn%2Fsvn2git;h=ab89784f4803ee4c4427a7d22022cf82d226d65c;hb=f483adb65ce3845a400488bd289eb3b6eac4b53a;hp=d5853daa88e1e28da6a2b620727b17e9fb77df21;hpb=9187d4d02c6f5aab348c08a0782c5114104e6d8e;p=git-scripts.git diff --git a/svn/svn2git b/svn/svn2git index d5853da..ab89784 100755 --- a/svn/svn2git +++ b/svn/svn2git @@ -27,9 +27,9 @@ 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 +# 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