aboutsummaryrefslogtreecommitdiff
path: root/builtin-checkout-index.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin-checkout-index.c')
-rw-r--r--builtin-checkout-index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-checkout-index.c b/builtin-checkout-index.c
index 29ea6fdc6..8d0dbad49 100644
--- a/builtin-checkout-index.c
+++ b/builtin-checkout-index.c
@@ -204,7 +204,7 @@ int cmd_checkout_index(int argc, const char **argv, const char *prefix)
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;