From 0b0fe4a65d24d7c17d72706e5cd179ecc7134721 Mon Sep 17 00:00:00 2001 From: Shawn Pearce Date: Mon, 10 Jul 2006 20:27:54 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- refs.c | 1 - 1 file changed, 1 deletion(-) (limited to 'refs.c') diff --git a/refs.c b/refs.c index 2d9c1dc5d3..56db394459 100644 --- a/refs.c +++ b/refs.c @@ -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; -- cgit v1.2.1