Skip to content

Commit

Permalink
core.logallrefupdates: log remotes/ tracking branches.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Dec 29, 2006
1 parent 04ece59 commit e19b9dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion refs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e19b9dd

Please sign in to comment.