将SVN库导入Git时,作者未定义 [英] Author not defined when importing SVN repository into Git

查看:331
本文介绍了将SVN库导入Git时,作者未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将我们的SVN仓库导入到Git中。当我运行这个命令时:

  git svn --authors-file = / path / to / authors --trunk = trunk克隆https:// my-repo / project。 

或此命令:

  svn2git https:// my-repo / project --no-minim-url -v --authors / path / to / authors 

两者都返回此错误:

 作者:patrick未在/ path / to / authors文件

..但据我所知,没有任何问题我的作者文件:

  $ grep patrick / path / to / authors 
patrick = Patrick< none @ example。 COM>

直到修订版8700才会发生该错误,因此它必须抓取其他作者姓名正确。



这里可能会发生什么?感谢。

解决方案

有两个问题:

首先为每位作者分配唯一的电子邮件地址。



另外,用户名是patrick。我不知道这是怎么发生的,但通过使用svnadmin,我能够将该昵称的所有实例更改为patrick。


I'm trying to import our SVN repository into Git. When I run either this command:

git svn --authors-file=/path/to/authors --trunk=trunk clone https://my-repo/project .

or this command:

svn2git https://my-repo/project --no-minimize-url -v --authors /path/to/authors

Both return this error:

Author: patrick  not defined in /path/to/authors file

..but as far as I can tell, there is nothing wrong with my authors file:

$ grep patrick /path/to/authors
patrick = Patrick <none@example.com>

That error doesn't happen until it gets to revision 8700, so it must be grabbing the other author names correctly.

What could be going on here? Thanks.

解决方案

There were two problems:

I solved the first by assigning unique email addresses to each author.

Also, the username was "patrick ". I have no idea how that happened, but by using svnadmin I was able to change all instances of that nickname to just "patrick".

这篇关于将SVN库导入Git时,作者未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆