git-diff -B output fix.
[gitweb.git] / checkout-index.c
index 61152f34b7fc00e745a2f7524c4da5b5a1a780a2..dfb1c4441550c6de596a1245161cfbca34ada10c 100644 (file)
@@ -206,7 +206,7 @@ int main(int argc, char **argv)
                        state.refresh_cache = 1;
                        if (newfd < 0)
                                newfd = hold_lock_file_for_update
-                                       (&lock_file, get_index_file());
+                                       (&lock_file, get_index_file(), 1);
                        if (newfd < 0)
                                die("cannot open index.lock file.");
                        continue;