summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b3d4204)
raw | patch | inline | side by side (parent: b3d4204)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 10 Oct 2006 04:15:59 +0000 (21:15 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 10 Oct 2006 04:15:59 +0000 (21:15 -0700) |
refs.c | patch | blob | history |
index 75a0d7b064618539e7bbe94d81b913beb4314dd5..3d100df85c4ca9f2f54c22a5c771014a8ba10f38 100644 (file)
--- a/refs.c
+++ b/refs.c
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));