]> Kevux Git Server - rit/commitdiff
commit walkers: setup_ident() to record correct committer in ref-log.
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Fri, 4 Aug 2006 21:01:34 +0000 (22:01 +0100)
committerJunio C Hamano <junkio@cox.net>
Sat, 5 Aug 2006 20:51:58 +0000 (13:51 -0700)
The function pull() in fetch.c calls write_ref_sha1(), which may
need committer identity to update the ref-log, so they need to
call setup_ident() before calling git_config() function.

Acked-by: Shawn Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
http-fetch.c
local-fetch.c
ssh-fetch.c

index 1aad39b..36af3e5 100644 (file)
@@ -1226,6 +1226,7 @@ int main(int argc, const char **argv)
        int arg = 1;
        int rc = 0;
 
+       setup_ident();
        setup_git_directory();
        git_config(git_default_config);
 
index b216bdd..4bf86fb 100644 (file)
@@ -210,6 +210,7 @@ int main(int argc, const char **argv)
        char **commit_id;
        int arg = 1;
 
+       setup_ident();
        setup_git_directory();
        git_config(git_default_config);
 
index 6e16568..c7d8fa8 100644 (file)
@@ -132,6 +132,7 @@ int main(int argc, char **argv)
        prog = getenv("GIT_SSH_PUSH");
        if (!prog) prog = "git-ssh-upload";
 
+       setup_ident();
        setup_git_directory();
        git_config(git_default_config);