summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-27 20:47:21 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-27 20:47:21 (GMT)
commit94d8213f2c98c4a5fd50484fcb11b4b24b403294 (patch)
treed4206bd3fff8ef6b811bf2d491a15836cee35f5c
parent3159c8dc2da4c88dcecabb95404fe88edc5441e4 (diff)
downloadgit-94d8213f2c98c4a5fd50484fcb11b4b24b403294.zip
git-94d8213f2c98c4a5fd50484fcb11b4b24b403294.tar.gz
git-94d8213f2c98c4a5fd50484fcb11b4b24b403294.tar.bz2
receive-pack: call setup_ident before git_config
Otherwise we would end up getting values from Gecos which is often not what people would want. Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--receive-pack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/receive-pack.c b/receive-pack.c
index f0b4cb4..c8aacbb 100644
--- a/receive-pack.c
+++ b/receive-pack.c
@@ -261,6 +261,7 @@ int main(int argc, char **argv)
if (!enter_repo(dir, 0))
die("'%s': unable to chdir or not a git archive", dir);
+ setup_ident();
git_config(git_default_config);
write_head_info();