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>
Ramsay Jones committed
Aug 4, 2006 at 22:01 UTC
19c4588178463cd8f0745d430159ab806d9fa6e4
3 files changed
+3
http-fetch.c
+1
@@ -1226,6 +1226,7 @@ int main(int argc, const char **argv)
1226
int arg = 1;
1227
int rc = 0;
1228
1229
+ setup_ident();
1230
setup_git_directory();
1231
git_config(git_default_config);
1232
local-fetch.c
+1
@@ -210,6 +210,7 @@ int main(int argc, const char **argv)
210
char **commit_id;
211
int arg = 1;
212
213
+ setup_ident();
214
setup_git_directory();
215
git_config(git_default_config);
216
ssh-fetch.c
+1
@@ -132,6 +132,7 @@ int main(int argc, char **argv)
132
prog = getenv("GIT_SSH_PUSH");
133
if (!prog) prog = "git-ssh-upload";
134
135
+ setup_ident();
136
setup_git_directory();
137
git_config(git_default_config);
138