Skip to content

Commit

Permalink
core.logallrefupdates thinko-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Junio C Hamano committed Oct 10, 2006
1 parent b3d4204 commit 1974bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refs.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ static int log_ref_write(struct ref_lock *lock,

logfd = open(lock->log_file, oflags, 0666);
if (logfd < 0) {
if (!log_all_ref_updates && errno == ENOENT)
if (!(oflags & O_CREAT) && errno == ENOENT)
return 0;
return error("Unable to append to %s: %s",
lock->log_file, strerror(errno));
Expand Down

0 comments on commit 1974bf6

Please sign in to comment.