svn2git failing saying Author: VisualSVN Server not defined in ./authors.txt file

喜欢而已 提交于 2020-01-13 09:40:09

问题


I am trying to migrate to git from svn and it fails by throwing the below error:

sethu@csmartserver:~/csmart/git/csmart$ sudo /var/lib/gems/1.8/bin/svn2git http://localhost/svn/csmart --authors ./authors.txt --verbose
Running command: git svn init --prefix=svn/ --no-metadata --trunk=trunk --tags=tags --branches=branches http://localhost/svn/csmart
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_IN:en",
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_IN"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Running command: git config --local svn.authorsfile ./authors.txt
Running command: git svn fetch 
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_IN:en",
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_IN"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Author: VisualSVN Server not defined in ./authors.txt file

command failed:
2>&1 git svn fetch 

My authors.txt file is of the below format:

jdoe = John Doe <joh.doe@gmail.com>

Could anyone help understand how to fix this issue please?


回答1:


You could use SmartGit to check out your SVN repository and push that clone to you Git server.




回答2:


Just ran into this. For svn2git, you'll need to add a line in your Authors file like follows:

VisualSVN Server = Visual SVN Server <admin@yourdomain.com>



回答3:


I would skip that script altogether unless it does something you need

Assuming your repo has the normal trunk/ branches/ tags/ layout

mkdir csmart
cd csmart
git svn init http://localhost/svn/csmart
git svn fetch

Ought to do the trick




回答4:


I would recommend you to install SubGit on the server. It has better translation engine than git-svn/svn2git that preserves more SVN concepts like ignores, EOLs, etc. There's an article how to do that step-by-step.




回答5:


The solution that worked for me: Encoding of the authors-transform file on Windows must be "UFT-8 without BOM".

Just use some smart editor that can do the convertion.



来源:https://stackoverflow.com/questions/8971208/svn2git-failing-saying-author-visualsvn-server-not-defined-in-authors-txt-fil

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!