Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-10-10 08:15:59 +0400
committerJunio C Hamano <junkio@cox.net>2006-10-10 08:15:59 +0400
commit1974bf620b436b014bfe86179ff76485610a4887 (patch)
tree2cfdb771da33d92cebdacf52113e5de9727045db /refs.c
parentb3d4204fc49959ddcd54c329be94189f98714d73 (diff)
core.logallrefupdates thinko-fix
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index 75a0d7b064..3d100df85c 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));