Where does TeamCity get the git user name from?

Our internal github instance reports my pushes as my user name, 'kutzs', but TeamCity keeps showing 'schley.kutz' as the user name associated with changes. Where is it getting that value from? 'schley.kutz' *is* the first part of my configured git user e-mail address, but it is NOT the e-mail address associated with my SSH key (that is my personal e-mail address). So the only place it could be pulling that value from is the prefix part of the git e-mail address doing the check-in. Does TC reflect the e-mail value instead of the user name value for git pushes?

Comment actions Permalink

I figured this out on my own. TeamCity's online help is a little misleading about what a userid is. Please see the following images:


The UserId, according to TeamCity, is the first part of the e-mail address, whereas the Name is the git user name value. I always put my user id, my user name, in the git user name field, and my e-mail address in the e-mail address field (a value which may not even reflect my user id. I see what git was trying to do, but it doesn't work in the case where someone uses the git user name field to put their user id.

Comment actions Permalink

here is an issue you can vote for: http://youtrack.jetbrains.com/issue/TW-15545 . The main reason on why we use our userId is that it is othen equals to TeamCity username. And unfortunately it is not easy to change the default behaviour, because of existing roots. Either old roots or new ones will work incorrectly.


Please sign in to leave a comment.