diff options
author | Shawn Pearce <spearce@spearce.org> | 2006-05-19 03:29:26 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-19 15:02:52 -0700 |
commit | d0740d92beb019a7b02678e5acea79c0ff67e3ee (patch) | |
tree | 0e3e69c86d311f788dc0010ffbc369e4fa6a53d1 /http-fetch.c | |
parent | 732232a123e1e61e38babb1c572722bb8a189ba3 (diff) | |
download | git-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 'http-fetch.c')
-rw-r--r-- | http-fetch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/http-fetch.c b/http-fetch.c index 861644b27..cc7bd1f36 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -1223,6 +1223,7 @@ int main(int argc, char **argv) int rc = 0; setup_git_directory(); + git_config(git_default_config); while (arg < argc && argv[arg][0] == '-') { if (argv[arg][1] == 't') { @@ -1249,6 +1250,7 @@ int main(int argc, char **argv) } commit_id = argv[arg]; url = argv[arg + 1]; + write_ref_log_details = url; http_init(); |