author | Shawn Pearce <spearce@spearce.org> | |
Tue, 11 Jul 2006 00:27:54 +0000 (20:27 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 11 Jul 2006 04:12:40 +0000 (21:12 -0700) | ||
commit | 0b0fe4a65d24d7c17d72706e5cd179ecc7134721 | |
tree | 282915de8acd8b0003c7d6cc1bec816de0543d3c | tree | snapshot |
parent | b75a82b75402c9462cfd2e9891d2fbe7ce6239f4 | commit | diff |
Allow user.name and user.email to drive reflog entry.
Apparently calling setup_ident() after git_config causes the
user.name and user.email values read from the config file to be
replaced with the data obtained from the host. This means that
users who have setup their email address in user.email will instead
be writing reflog entries with their hostname.
Moving setup_ident() to before git_config in update-ref resolves
this ordering problem.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Apparently calling setup_ident() after git_config causes the
user.name and user.email values read from the config file to be
replaced with the data obtained from the host. This means that
users who have setup their email address in user.email will instead
be writing reflog entries with their hostname.
Moving setup_ident() to before git_config in update-ref resolves
this ordering problem.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-update-ref.c | diff | blob | history | |
refs.c | diff | blob | history |