Browse Source

commit walkers: setup_ident() to record correct committer in ref-log.

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>
maint
Ramsay Jones 19 years ago committed by Junio C Hamano
parent
commit
19c4588178
  1. 1
      http-fetch.c
  2. 1
      local-fetch.c
  3. 1
      ssh-fetch.c

1
http-fetch.c

@ -1226,6 +1226,7 @@ int main(int argc, const char **argv) @@ -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);


1
local-fetch.c

@ -210,6 +210,7 @@ int main(int argc, const char **argv) @@ -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);


1
ssh-fetch.c

@ -132,6 +132,7 @@ int main(int argc, char **argv) @@ -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);


Loading…
Cancel
Save