开发者

How to link redmine user with repository user

I have a Redmine project linked with a repository (git). I want to link my commi开发者_运维知识库ts with my Redmine account. Now my every commit is made by "Anonymous" user, because RM username and repo username differ.


Under your project settings, in the Repository tab below the greyed out section with your repo URL, there is an icon for users. This screen will allow you to map repo usernames with redmine usernames. This is present in my redmine version 1.1.3.stable. Not sure what version it was implemented in.


Do you see messages 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 luke@code-house.org

As describes in this thread:

Remember that your email in ~/.gitconfig file should match the one you are registered with in Redmine:
To check your email:

git config --get user.email

To set your email:

locally (in project folder):
git config user.email your@email.com

or globally (anywhere):
git config --global user.email your@email.com

that's because of a logic (problem?) in a redmine code..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜