author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 17 Dec 2006 08:15:14 +0000 (03:15 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 17 Dec 2006 09:14:44 +0000 (01:14 -0800) | ||
commit | a7f196a74650e45ce240754e2caa483752651063 | |
tree | 483bff2e2348641ef44570b9d870e525f3cc67bd | tree | snapshot |
parent | 81a361be3b12f393d402c5da63191c11c18ea6a9 | commit | diff |
Default GIT_COMMITTER_NAME to login name in recieve-pack.
If GIT_COMMITTER_NAME is not available in receive-pack but reflogs
are enabled we would normally die out with an error message asking
the user to correct their environment settings.
Now that reflogs are enabled by default in (what we guessed to be)
non-bare Git repositories this may cause problems for some users
who don't have their full name in the gecos field and who don't
have access to the remote system to correct the problem.
So rather than die()'ing out in receive-pack when we try to log a
ref change and have no committer name we default to the username,
as obtained from the host's password database.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
If GIT_COMMITTER_NAME is not available in receive-pack but reflogs
are enabled we would normally die out with an error message asking
the user to correct their environment settings.
Now that reflogs are enabled by default in (what we guessed to be)
non-bare Git repositories this may cause problems for some users
who don't have their full name in the gecos field and who don't
have access to the remote system to correct the problem.
So rather than die()'ing out in receive-pack when we try to log a
ref change and have no committer name we default to the username,
as obtained from the host's password database.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
cache.h | diff | blob | history | |
ident.c | diff | blob | history | |
receive-pack.c | diff | blob | history |