Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
core.logallrefupdates thinko-fix
[gitweb.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index 75a0d7b064618539e7bbe94d81b913beb4314dd5..3d100df85c4ca9f2f54c22a5c771014a8ba10f38 100644
(file)
--- 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));