Hello,
I have recently setup a new gitosis in my private network on ubuntu server. All other clients in network are windows xp machine except one linux client
I have following setup in gitosis.conf:
[group MyProjectTeam]
writable = MyProjectRepo
members = user1 user2 user3
I have also placed user1.pub, user2.pub and user3.pub key files in keydir. The keys were generated on Ubuntu server using ssh-keygen and distributed to respective users. Copy of public keys are placed in keydir.
First two users are windows xp users they use msysgit + tortoisegit to work with repository and one user is on linux machine to access the repository using default command line version of git.
Now all is setup well and everybody is able to do whatever they are expected to, they are able to pull, push, commit - everything looks fine except when we check logs!!!
Using user3 on linux machine, I tried "git log" command and got following output:
commit 1b249e239d270b814aab31eed7dc6f04ceceba32
Author: User3 <Admin@ubuntu-server.(none)>
Date: Fri Sep 11 07:26:58 2009 +0530
modifed by user3
commit 646f8b11a715273dc26280fc1da2507c997f981c
Author: unknown <Admin@.(none)>
Date: Fri Sep 11 07:10:56 2009 +0530
modified by user2
commit 9f86dc7a6bfafc1c1e520d6de3dac7c613ac85cb
Author: unknown <Admin@.(none)>
Date: Fri Sep 11 06:50:22 2009 +0530
modified
commit b1a3b64005795f9592aae05c422c70a03dbb9b58
Author: admin <Admin@ubuntu-server.(none)>
Date: Fri Sep 11 06:18:54 2009 +0530
test file added by admin
This is not correct. This log should be able to tell me who is the Author of Push. What I feel is that its giving correct values for users on Linux as their user name and emails are also added in the linux user info but for windows clients its not true so their names does not appear correctly. But even if I fix names on Windows machine, this can be compromised by emulating other users name, to avoid this I don't want to rely on user names.
I want name provided in SSH file be appear there or name of the SSH file that was used while push to be added as Author.
May be git's hook pre-receive can help here but I don't know how to use it... can anybody help?
Thanks, Rakesh