Skip to content

Commit

Permalink
commit walkers: setup_ident() to record correct committer in ref-log.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ramsay Jones authored and Junio C Hamano committed Aug 5, 2006
1 parent 07efc6a commit 19c4588
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions http-fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions local-fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions ssh-fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 19c4588

Please sign in to comment.