summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 04ece59)
raw | patch | inline | side by side (parent: 04ece59)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 29 Dec 2006 00:32:05 +0000 (16:32 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 29 Dec 2006 02:37:33 +0000 (18:37 -0800) |
Not using reflog for tags/ was very sensible; not giving reflog
for the remotes/ was not.
Signed-off-by: Junio C Hamano <junkio@cox.net>
for the remotes/ was not.
Signed-off-by: Junio C Hamano <junkio@cox.net>
refs.c | patch | blob | history |
index 8b2a3c13784166e93e15be6f9222d26272a3b78b..e88ed8b2d3f42f48e6859de16f3d6a7f3641a84c 100644 (file)
--- a/refs.c
+++ b/refs.c
const char *committer;
if (log_all_ref_updates &&
- !strncmp(lock->ref_name, "refs/heads/", 11)) {
+ (!strncmp(lock->ref_name, "refs/heads/", 11) ||
+ !strncmp(lock->ref_name, "refs/remotes/", 13))) {
if (safe_create_leading_directories(lock->log_file) < 0)
return error("unable to create directory for %s",
lock->log_file);