commit | 1974bf620b436b014bfe86179ff76485610a4887 | [log] [tgz] |
---|---|---|
author | Junio C Hamano <junkio@cox.net> | Mon Oct 09 21:15:59 2006 -0700 |
committer | Junio C Hamano <junkio@cox.net> | Mon Oct 09 21:15:59 2006 -0700 |
tree | 2cfdb771da33d92cebdacf52113e5de9727045db | |
parent | b3d4204fc49959ddcd54c329be94189f98714d73 [diff] [blame] |
core.logallrefupdates thinko-fix
diff --git a/refs.c b/refs.c index 75a0d7b..3d100df 100644 --- a/refs.c +++ b/refs.c
@@ -731,7 +731,7 @@ 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));