aboutsummaryrefslogtreecommitdiff
path: root/local-fetch.c
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2006-05-19 03:29:26 -0400
committerJunio C Hamano <junkio@cox.net>2006-05-19 15:02:52 -0700
commitd0740d92beb019a7b02678e5acea79c0ff67e3ee (patch)
tree0e3e69c86d311f788dc0010ffbc369e4fa6a53d1 /local-fetch.c
parent732232a123e1e61e38babb1c572722bb8a189ba3 (diff)
downloadgit-d0740d92beb019a7b02678e5acea79c0ff67e3ee.tar.gz
git-d0740d92beb019a7b02678e5acea79c0ff67e3ee.tar.xz
Log ref updates made by fetch.
If a ref is changed by http-fetch, local-fetch or ssh-fetch record the change and the remote URL/name in the log for the ref. This requires loading the config file to check logAllRefUpdates. Also fixed a bug in the ref lock generation; the log file name was not being produced right due to a bad prefix length. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'local-fetch.c')
-rw-r--r--local-fetch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/local-fetch.c b/local-fetch.c
index fa9e697fd..ffa488757 100644
--- a/local-fetch.c
+++ b/local-fetch.c
@@ -208,6 +208,7 @@ int main(int argc, char **argv)
int arg = 1;
setup_git_directory();
+ git_config(git_default_config);
while (arg < argc && argv[arg][0] == '-') {
if (argv[arg][1] == 't')
@@ -239,6 +240,7 @@ int main(int argc, char **argv)
usage(local_pull_usage);
commit_id = argv[arg];
path = argv[arg + 1];
+ write_ref_log_details = path;
if (pull(commit_id))
return 1;