diff --git a/builtin-send-pack.c b/builtin-send-pack.c
index c375a3dbde0a75af592c8881965f255f66b599d1..37e528e28364fbde5a5ba31316aa7bf66d43586b 100644 (file)
--- a/builtin-send-pack.c
+++ b/builtin-send-pack.c
NULL,
NULL,
NULL,
+ NULL,
};
struct child_process po;
int i;
@@ -53,13 +54,15 @@ static int pack_objects(int fd, struct ref *refs, struct extra_have_objects *ext
argv[i++] = "--thin";
if (args->use_ofs_delta)
argv[i++] = "--delta-base-offset";
+ if (args->quiet)
+ argv[i++] = "-q";
memset(&po, 0, sizeof(po));
po.argv = argv;
po.in = -1;
po.out = fd;
po.git_cmd = 1;
if (start_command(&po))
- die("git pack-objects failed (%s)", strerror(errno));
+ die_errno("git pack-objects failed");
/*
* We feed the pack-objects we just spawned with revision