X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=svn%2Fsvn2git;h=f8ae407835d2aa637d025312b6558ff6c1007ae3;hb=HEAD;hp=b225f69e6ff3c7ce03997d523297b84ccd9e2b43;hpb=4c9d54c78f3d342cab528b0baacca9e56aba7b2f;p=git-scripts.git diff --git a/svn/svn2git b/svn/svn2git index b225f69..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' | @@ -57,4 +57,4 @@ git config --local --path svn.authorsfile .git/info/authors.txt git svn gc && 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