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 /ssh-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 'ssh-fetch.c')
-rw-r--r-- | ssh-fetch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ssh-fetch.c b/ssh-fetch.c index 4eb9e0482..e3067b878 100644 --- a/ssh-fetch.c +++ b/ssh-fetch.c @@ -132,6 +132,7 @@ int main(int argc, char **argv) if (!prog) prog = "git-ssh-upload"; setup_git_directory(); + git_config(git_default_config); while (arg < argc && argv[arg][0] == '-') { if (argv[arg][1] == 't') { @@ -158,6 +159,7 @@ int main(int argc, char **argv) } commit_id = argv[arg]; url = argv[arg + 1]; + write_ref_log_details = url; if (setup_connection(&fd_in, &fd_out, prog, url, arg, argv + 1)) return 1; |