X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=bundle.c;h=6bf849740c6de45fe8ca11eca2a06a52c7ebc0bb;hb=6c65b5ea439165512d128e18829b67688ddab9cc;hp=f48fd7d4c1c706b68e879e4dfabdd3fb8597a328;hpb=055f2c5d340508d3542ede8dc1db2aedd0b9f1b5;p=git.git diff --git a/bundle.c b/bundle.c index f48fd7d4c..6bf849740 100644 --- a/bundle.c +++ b/bundle.c @@ -380,12 +380,15 @@ int create_bundle(struct bundle_header *header, const char *path, return 0; } -int unbundle(struct bundle_header *header, int bundle_fd) +int unbundle(struct bundle_header *header, int bundle_fd, int flags) { const char *argv_index_pack[] = {"index-pack", - "--fix-thin", "--stdin", NULL}; + "--fix-thin", "--stdin", NULL, NULL}; struct child_process ip; + if (flags & BUNDLE_VERBOSE) + argv_index_pack[3] = "-v"; + if (verify_bundle(header, 0)) return -1; memset(&ip, 0, sizeof(ip));