summaryrefslogtreecommitdiff
path: root/builtin-update-ref.c
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2006-07-11 00:27:54 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-11 04:12:40 (GMT)
commit0b0fe4a65d24d7c17d72706e5cd179ecc7134721 (patch)
tree282915de8acd8b0003c7d6cc1bec816de0543d3c /builtin-update-ref.c
parentb75a82b75402c9462cfd2e9891d2fbe7ce6239f4 (diff)
downloadgit-0b0fe4a65d24d7c17d72706e5cd179ecc7134721.zip
git-0b0fe4a65d24d7c17d72706e5cd179ecc7134721.tar.gz
git-0b0fe4a65d24d7c17d72706e5cd179ecc7134721.tar.bz2
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 'builtin-update-ref.c')
-rw-r--r--builtin-update-ref.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-update-ref.c b/builtin-update-ref.c
index 00333c7..83094ab 100644
--- a/builtin-update-ref.c
+++ b/builtin-update-ref.c
@@ -12,6 +12,7 @@ int cmd_update_ref(int argc, const char **argv, char **envp)
unsigned char sha1[20], oldsha1[20];
int i;
+ setup_ident();
setup_git_directory();
git_config(git_default_config);