X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=remote-curl.c;h=d159fe7f3433ccf6e8c8908961736951e42b9c35;hb=5eb660ecd1965c67be0051c46b8e8a56b28ff5b2;hp=48c20b86f3cfc6c189972718046a6890aaefacf3;hpb=9b0b0b4f45bc3d2f12391fe0dd4eaef81db97295;p=git.git diff --git a/remote-curl.c b/remote-curl.c index 48c20b86f..d159fe7f3 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -770,7 +770,9 @@ static int push_git(struct discovery *heads, int nr_spec, char **specs) argv[argc++] = "--thin"; if (options.dry_run) argv[argc++] = "--dry-run"; - if (options.verbosity > 1) + if (options.verbosity == 0) + argv[argc++] = "--quiet"; + else if (options.verbosity > 1) argv[argc++] = "--verbose"; argv[argc++] = url; for (i = 0; i < nr_spec; i++) @@ -805,7 +807,7 @@ static int push(int nr_spec, char **specs) static void parse_push(struct strbuf *buf) { char **specs = NULL; - int alloc_spec = 0, nr_spec = 0, i; + int alloc_spec = 0, nr_spec = 0, i, ret; do { if (!prefixcmp(buf->buf, "push ")) { @@ -822,12 +824,13 @@ static void parse_push(struct strbuf *buf) break; } while (1); - if (push(nr_spec, specs)) - exit(128); /* error already reported */ - + ret = push(nr_spec, specs); printf("\n"); fflush(stdout); + if (ret) + exit(128); /* error already reported */ + free_specs: for (i = 0; i < nr_spec; i++) free(specs[i]);