Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to link redmine user with repository user

I have a Redmine project linked with a repository (git). I want to link my commits with my Redmine account. Now my every commit is made by "Anonymous" user, because RM username and repo username differ.

like image 658
Soul Reaver Avatar asked Apr 22 '11 07:04

Soul Reaver


2 Answers

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.

like image 59
Andrew Avatar answered Oct 19 '22 17:10

Andrew


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 [email protected]

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 [email protected]

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

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

like image 45
VonC Avatar answered Oct 19 '22 16:10

VonC