X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=bundle.c;h=65ea26bdb8c2cef671030c3a62d87d84612e8144;hb=1f238da57334ca0155ae7560b173eefc8c4c157a;hp=e04ab497111a15f96671d27e16fd901438d28e26;hpb=8b3dce565084c89ceb19f7ccf0fe22ffd365f7fd;p=git.git diff --git a/bundle.c b/bundle.c index e04ab4971..65ea26bdb 100644 --- a/bundle.c +++ b/bundle.c @@ -343,7 +343,7 @@ int create_bundle(struct bundle_header *header, const char *path, /* write pack */ argv_pack[0] = "pack-objects"; - argv_pack[1] = "--all-progress"; + argv_pack[1] = "--all-progress-implied"; argv_pack[2] = "--stdout"; argv_pack[3] = "--thin"; argv_pack[4] = NULL; @@ -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; }