core.logallrefupdates: log remotes/ tracking branches.
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>
Junio C Hamano committed
Dec 28, 2006 at 16:32 UTC
e19b9ddab3fb7bd3bf6ed6629d3f014722e57a31
1 file changed
+2
-1
refs.c
+2
-1
@@ -925,7 +925,8 @@ static int log_ref_write(struct ref_lock *lock,
925
const char *committer;
926
927
if (log_all_ref_updates &&
928
- !strncmp(lock->ref_name, "refs/heads/", 11)) {
928
+ (!strncmp(lock->ref_name, "refs/heads/", 11) ||
929
+ !strncmp(lock->ref_name, "refs/remotes/", 13))) {
930
if (safe_create_leading_directories(lock->log_file) < 0)
931
return error("unable to create directory for %s",
932
lock->log_file);