Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2006-08-05 01:01:34 +0400
committerJunio C Hamano <junkio@cox.net>2006-08-06 00:51:58 +0400
commit19c4588178463cd8f0745d430159ab806d9fa6e4 (patch)
tree41b533e685060be306d33cc1e0729996ad8c77a6
parent07efc6a6b6e5098ccd2dcce853be421b7dd1e244 (diff)
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>
-rw-r--r--http-fetch.c1
-rw-r--r--local-fetch.c1
-rw-r--r--ssh-fetch.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/http-fetch.c b/http-fetch.c
index 1aad39b4d8..36af3e5b94 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -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);
diff --git a/local-fetch.c b/local-fetch.c
index b216bdd557..4bf86fbbe2 100644
--- a/local-fetch.c
+++ b/local-fetch.c
@@ -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);
diff --git a/ssh-fetch.c b/ssh-fetch.c
index 6e16568f88..c7d8fa80e4 100644
--- a/ssh-fetch.c
+++ b/ssh-fetch.c
@@ -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);