summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07efc6a)
raw | patch | inline | side by side (parent: 07efc6a)
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | |
Fri, 4 Aug 2006 21:01:34 +0000 (22:01 +0100) | ||
committer | Junio 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>
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 | patch | blob | history | |
local-fetch.c | patch | blob | history | |
ssh-fetch.c | patch | blob | history |
diff --git a/http-fetch.c b/http-fetch.c
index 1aad39b4d830d32b9ac4034153a06ddc08c72bcb..36af3e5b94bb87f8d452aac99c27cba0097abf13 100644 (file)
--- a/http-fetch.c
+++ b/http-fetch.c
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 b216bdd55742ef8214ed1193ef184f8bba70eb70..4bf86fbbe2703514cd3ab39fd9c81accac662aaf 100644 (file)
--- a/local-fetch.c
+++ b/local-fetch.c
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 6e16568f88f6fcbbb79d23c1f6187860c8cfb453..c7d8fa80e425695374f11746ae6592f52d8401d5 100644 (file)
--- a/ssh-fetch.c
+++ b/ssh-fetch.c
prog = getenv("GIT_SSH_PUSH");
if (!prog) prog = "git-ssh-upload";
+ setup_ident();
setup_git_directory();
git_config(git_default_config);