当我执行“git svn rebase”时它获取 svn 作者姓名而不是 git 作者姓名
我已经使用 git svn clone -Aauthors.txt ... 来克隆 svn 存储库。 我的authors.txt 有这样的条目:
svnid = Firstname Lastname <[email protected]>
工作正常,在 git log 中,作者看起来像:
Author: Firstname Lastname <[email protected]>
现在,当我执行 git svn rebase -Aauthors.txt 时 新条目的作者如下所示:
Author: svnid <svnid@12345678-1234-1234-1234-123456789abc>
我使用了“
我可以做什么来保留正确的作者姓名?
编辑:我正在使用 git 版本 1.7.6.msysgit.0 在 Windows 上显然如此。
I have used git svn clone -A authors.txt ...
to clone an svn repository.
My authors.txt
had entries like this:
svnid = Firstname Lastname <[email protected]>
That worked fine and in git log
the authors look like:
Author: Firstname Lastname <[email protected]>
Now when I do git svn rebase -A authors.txt
the authors for the new entries look like this:
Author: svnid <svnid@12345678-1234-1234-1234-123456789abc>
I used the accepted answer from "Retroactively Correct Authors with Git SVN?"
to fix it, but after the next git svn rebase -A authors.txt
the authors are destroyed again.
What can I do to preserve the proper author names?
EDIT: I'm using git version 1.7.6.msysgit.0
on Windows obviously.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
svn.authorsfile
是一点艺术许可(又名错误)。如果您在$EDITOR
中打开 .git/config 文件,您将看到类似以下内容:将该行添加
为该部分的最后一行(并将您的
authors.txt
文件放入当然是.git/svn/
目录)。svn.authorsfile
is a bit of artistic license (aka bug). If you open .git/config file in$EDITOR
you will see something like:add the line
as the last line of that section (and put your
authors.txt
file to.git/svn/
directory, of course).