X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-commit.c;h=93ca49635731942c72cb52b27b1a6ba53becd1ca;hb=1689c5de8730ea334535337a341db3c7a21ad002;hp=33b659edce478fb0d3d4bb723e4f54c13db0efb1;hpb=d67dd17b336a1f39760324b6cc05eaee17b5f124;p=git.git diff --git a/builtin-commit.c b/builtin-commit.c index 33b659edc..93ca49635 100644 --- a/builtin-commit.c +++ b/builtin-commit.c @@ -320,7 +320,9 @@ static char *prepare_index(int argc, const char **argv, const char *prefix) die("unable to write new_index file"); fd = hold_lock_file_for_update(&false_lock, - git_path("next-index-%"PRIuMAX, (uintmax_t) getpid()), 1); + git_path("next-index-%"PRIuMAX, + (uintmax_t) getpid()), + LOCK_DIE_ON_ERROR); create_base_index(); add_remove_files(&partial);