2011-04-22 24 views

回答

10

在您的项目设置,在下面与您的回购URL的灰色部分的存储库选项卡,用户有一个图标。此屏幕将允许您使用redmine用户名映射回购用户名。这是在我的redmine 1.1.3.stable版本中。不知道它实施了什么版本。

+1

yup,这个效果最好^ _ ^我不确定,如果我可以使用它,因为现在我使用稳定的1.2.0(一周前发布;))。无论如何,谢谢你的解决方案。 – 2011-06-08 05:50:45

+0

这个Redmine功能的好处。 +1 – VonC 2011-06-08 08:15:31

+0

在1.2.1中,如果git用户名或电子邮件匹配,现在应该自动执行此操作。在同一部分/选项卡user562034中提到:'具有相同Redmine和存储库用户名或电子邮件的用户会自动映射。' – 2011-07-22 21:57:43

1

您是否看到消息like those

Redmine is checking your changes for correctness... 
Authenticated as Lukasz Dywicki 
Changes: 
    Ref: refs/heads/fusion type: commit 
      Error: Initial commit can be done only by repository manager 
     Commit: 442155e0797c4f4fbae74f91265ab664f3ca0880 
     Commit: c8a137d577f2033721c9d52e0907b7e9f8ca48b2 
      Error: Commit author name or email is wrong 
      Error:  Execute following commands and _recreate_ commit: 
      Error:  git config --global user.name "Lukasz Dywicki" 
      Error:  git config --global user.email [email protected] 

正如介绍this thread

请记住,你在~/.gitconfig文件的电子邮件应匹配您正在使用管理平台注册一个:
要检查你的电子邮件:

git config --get user.email 

要设置你的电子邮件:

locally (in project folder): 
git config user.email [email protected] 

or globally (anywhere): 
git config --global user.email [email protected] 

这是因为在一个管理平台代码逻辑(问题?)的..

+0

Witaj;) 不,我没有看到这些消息。 RM与我的回购协议工作良好。只有“错误”是提交不是我的。 所以你告诉用户是通过电子邮件地址标识的......呃,好的,所以我将不得不在我当地的回购站中更改邮件地址;) 谢谢,我稍后再检查您的解决方案并将其标记为答案如果正确 – 2011-04-22 09:43:59

+0

所以...我在这里找到了我的名字;) – splatch 2014-07-17 09:32:40

+0

@splatch确实:)让我知道如果这是一个问题,并且如果你想让我混淆它。 – VonC 2014-07-17 09:42:39