Browse Source

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>
maint
Junio C Hamano 18 years ago
parent
commit
e19b9ddab3
  1. 3
      refs.c

3
refs.c

@ -925,7 +925,8 @@ static int log_ref_write(struct ref_lock *lock, @@ -925,7 +925,8 @@ static int log_ref_write(struct ref_lock *lock,
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);

Loading…
Cancel
Save