diff options
author | Shawn Pearce <spearce@spearce.org> | 2006-07-10 20:27:54 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-07-10 21:12:40 -0700 |
commit | 0b0fe4a65d24d7c17d72706e5cd179ecc7134721 (patch) | |
tree | 282915de8acd8b0003c7d6cc1bec816de0543d3c /refs.c | |
parent | Fix linking for not-so-clever linkers. (diff) | |
download | tgif-0b0fe4a65d24d7c17d72706e5cd179ecc7134721.tar.xz |
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>
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -379,7 +379,6 @@ static int log_ref_write(struct ref_lock *lock, lock->log_file, strerror(errno)); } - setup_ident(); committer = git_committer_info(1); if (msg) { maxlen = strlen(committer) + strlen(msg) + 2*40 + 5; |