“当我这样做的时候”;git svn rebase“;它获取svn作者姓名,而不是git作者姓名

“当我这样做的时候”;git svn rebase“;它获取svn作者姓名,而不是git作者姓名,git,svn,git-svn,Git,Svn,Git Svn,我使用了git svn clone-A authors.txt…来克隆svn存储库。 Myauthors.txt的条目如下: svnid = Firstname Lastname <Firstname.Lastname@example.com> Author: svnid <svnid@12345678-1234-1234-1234-123456789abc> 现在,当我执行git svn rebase-A authors.txt时,新条目的作者如下所示: svnid

我使用了
git svn clone-A authors.txt…
来克隆svn存储库。 My
authors.txt
的条目如下:

svnid = Firstname Lastname <Firstname.Lastname@example.com>
Author: svnid <svnid@12345678-1234-1234-1234-123456789abc>
现在,当我执行
git svn rebase-A authors.txt时,新条目的作者如下所示:

svnid = Firstname Lastname <Firstname.Lastname@example.com>
Author: svnid <svnid@12345678-1234-1234-1234-123456789abc>
作者:svnid
我使用了来自“”的公认答案 修复它,但是在下一次
git svn rebase-A authors.txt之后,作者再次被销毁

我能做些什么来保留正确的作者姓名

编辑:我正在使用git版本1.7.6.msysgit.0
显然,在Windows上。

svn.authorsfile
是一种艺术许可(又名bug)。如果在
$EDITOR
中打开.git/config文件,您将看到如下内容:

[svn-remote "svn"]
url = https://crosswire.org/svn/sword
fetch = trunk:refs/remotes/trunk
branches = branches/*:refs/remotes/*
tags = tags/*:refs/remotes/tags/*
添加行

authorsfile = .git/svn/authors.txt

作为该部分的最后一行(当然,将您的
authors.txt
文件放到
.git/svn/
目录中)。

svn.authorsfile
是一种艺术许可(又称bug)。如果在
$EDITOR
中打开.git/config文件,您将看到如下内容:

[svn-remote "svn"]
url = https://crosswire.org/svn/sword
fetch = trunk:refs/remotes/trunk
branches = branches/*:refs/remotes/*
tags = tags/*:refs/remotes/tags/*
添加行

authorsfile = .git/svn/authors.txt

作为该部分的最后一行(当然,将您的
authors.txt
文件放入
.git/svn/
目录)。

。我在存储库中设置了
svn.authorsfile
,它不仅总是使用它(我从不通过-A来重新设置基础),而且如果没有svn用户名,它甚至会失败,我必须在继续之前填写它。根据手册页,它应该是这样工作的。我还尝试设置了
git config svn.authorsfile authors.txt
,但没有改变任何东西。也许是时候在项目邮件列表上询问了。奇怪。我在存储库中设置了
svn.authorsfile
,它不仅总是使用它(我从不通过-A来重新设置基础),而且如果没有svn用户名,它甚至会失败,我必须在继续之前填写它。根据手册页,它应该是这样工作的。我还尝试设置了git config svn.authorsfile authors.txt,但没有改变任何东西。也许是时候在项目邮件列表中询问了。