@matheusbsbs / matheus-bagliano / commits / 1974bf620b
Fork 0

core.logallrefupdates thinko-fix

Junio C Hamano committed Oct 9, 2006 at 21:15 UTC 1974bf620b436b014bfe86179ff76485610a4887
1 file changed +1 -1
refs.c
+1 -1
@@ -731,7 +731,7 @@ static int log_ref_write(struct ref_lock *lock,
731
732 logfd = open(lock->log_file, oflags, 0666);
733 if (logfd < 0) {
734 - if (!log_all_ref_updates && errno == ENOENT)
734 + if (!(oflags & O_CREAT) && errno == ENOENT)
735 return 0;
736 return error("Unable to append to %s: %s",
737 lock->log_file, strerror(errno));