From: Junio C Hamano Date: Tue, 10 Oct 2006 04:15:59 +0000 (-0700) Subject: core.logallrefupdates thinko-fix X-Git-Tag: v1.4.4-rc1~44^2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1974bf620b436b014bfe86179ff76485610a4887;p=git.git core.logallrefupdates thinko-fix --- diff --git a/refs.c b/refs.c index 75a0d7b06..3d100df85 100644 --- a/refs.c +++ b/refs.c @@ -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));