Merge branch 'lj/refs' into next

* lj/refs:
  core.logallrefupdates thinko-fix
This commit is contained in:
Junio C Hamano
2006-10-09 21:16:15 -07:00

2
refs.c
View File

@@ -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));