Wrong author name in git commit

Neil Horman nhorman at redhat.com
Fri Mar 16 13:51:35 UTC 2012


On Fri, Mar 16, 2012 at 02:21:13PM +0100, Romain Forlot wrote:
> I don't understand what is going on...
> That's what I have in global git variables :
> # git config --global -l
> user.name=Romain Forlot
> user.email=rforlot at yahoo.com
> color.diff=auto
> color.status=auto
> color.branch=auto
> 
> And that's my git config file in the cloned repository :
> # cat .git/config
> [core]
> 	repositoryformatversion = 0
> 	filemode = true
> 	bare = false
> 	logallrefupdates = true
> [user]
> 	name = FORLOT Romain
> 	email = rforlot at yahoo.com
> [remote "origin"]
> 	fetch = +refs/heads/*:refs/remotes/origin/*
> 	url = ssh://git.fedorahosted.org/git/docs/user-guide.git
> [branch "master"]
> 	remote = origin
> 	merge = refs/heads/master
> [branch "f16"]
> 	remote = origin
> 	merge = refs/heads/f16
> 
> # cat ~/.ssh/config
> Host *.fedorahosted.org fedorapeople.org
> User rforlot
> 
> But when I'm commiting, it always show me wrong user except when I'm
> using 'git commit -a --author "..."' method. At least now, I do a good
> commiting, I think, by following guide to using git in docs project :
> http://fedoraproject.org/wiki/Docs_Project_work_using_git
> And I doesn't see my commit into git repository.
> 
Do you have GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL env. vars. set?  Those will
override the repo specific config IIRC.



More information about the docs mailing list