X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=bundle.c;h=65ea26bdb8c2cef671030c3a62d87d84612e8144;hb=8a1c0d322e9b6963f3be6949475983d517d79796;hp=ff97adcb891caf98dcc655e71e29eaec5dae0135;hpb=796a01c41ca0b66f798571c7e876b3de4607f498;p=git.git diff --git a/bundle.c b/bundle.c index ff97adcb8..65ea26bdb 100644 --- a/bundle.c +++ b/bundle.c @@ -372,8 +372,10 @@ int create_bundle(struct bundle_header *header, const char *path, close(rls.in); if (finish_command(&rls)) return error ("pack-objects died"); - if (!bundle_to_stdout) - commit_lock_file(&lock); + if (!bundle_to_stdout) { + if (commit_lock_file(&lock)) + die_errno("cannot create '%s'", path); + } return 0; }