Skip to content

Commit e19b9dd

Browse files
author
Junio C Hamano
committed
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>
1 parent 04ece59 commit e19b9dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

refs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,8 @@ static int log_ref_write(struct ref_lock *lock,
925925
const char *committer;
926926

927927
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))) {
929930
if (safe_create_leading_directories(lock->log_file) < 0)
930931
return error("unable to create directory for %s",
931932
lock->log_file);

0 commit comments

Comments
 (0)