Allow user.name and user.email to drive reflog entry.
authorShawn Pearce <spearce@spearce.org>
Tue, 11 Jul 2006 00:27:54 +0000 (20:27 -0400)
committerJunio C Hamano <junkio@cox.net>
Tue, 11 Jul 2006 04:12:40 +0000 (21:12 -0700)
commit0b0fe4a65d24d7c17d72706e5cd179ecc7134721
tree282915de8acd8b0003c7d6cc1bec816de0543d3c
parentb75a82b75402c9462cfd2e9891d2fbe7ce6239f4
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>
builtin-update-ref.c
refs.c