svn2git失败说法作者:VisualSVN服务器未在./authors.txt文件中定义

set*_*thu 6 svn git

我试图从svn迁移到git并通过抛出以下错误失败:

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 
Run Code Online (Sandbox Code Playgroud)

我的authors.txt文件格式如下:

jdoe = John Doe <joh.doe@gmail.com>
Run Code Online (Sandbox Code Playgroud)

任何人都可以帮忙了解如何解决这个问题吗?

bas*_*ays 26

刚碰到这个.对于svn2git,您需要在Authors文件中添加一行,如下所示:

VisualSVN Server = Visual SVN Server <admin@yourdomain.com>
Run Code Online (Sandbox Code Playgroud)

  • 我添加了“VisualSVN Server = Visual SVN Server &lt;name.secondname@mycompany.com&gt;”,但错误仍然存​​在。我做错了什么吗? (2认同)

小智 7

对我有用的解决方案:Windows 上作者转换文件的编码必须是“UFT-8 without BOM”。

只需使用一些可以进行转换的智能编辑器即可。


Mot*_*Mot -3

您可以使用 SmartGit 查看您的 SVN 存储库并将该克隆推送到您的 Git 服务器。