diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-09-06 11:42:12 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-09-06 11:42:12 -0700 |
commit | 48f36dcd7320d27a840e89fc2aa7ab11716951c6 (patch) | |
tree | 404b25022bc48ca9eda54774c9001e30e34c89d1 /transport.c | |
parent | b32128793de296348a565e8f7c4257ec82208a48 (diff) | |
parent | 509d59705ee07094bcc56b49a17ba0ae983da50f (diff) | |
download | git-48f36dcd7320d27a840e89fc2aa7ab11716951c6.tar.gz |
Sync with 1.7.6.2
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
-rw-r--r-- | transport.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/transport.c b/transport.c index d2725e57dc..fa279d531f 100644 --- a/transport.c +++ b/transport.c @@ -483,18 +483,14 @@ static int set_git_option(struct git_transport_options *opts, static int connect_setup(struct transport *transport, int for_push, int verbose) { struct git_transport_data *data = transport->data; - struct strbuf sb = STRBUF_INIT; if (data->conn) return 0; - strbuf_addstr(&sb, for_push ? data->options.receivepack : - data->options.uploadpack); - if (for_push && transport->verbose < 0) - strbuf_addstr(&sb, " --quiet"); - data->conn = git_connect(data->fd, transport->url, sb.buf, + data->conn = git_connect(data->fd, transport->url, + for_push ? data->options.receivepack : + data->options.uploadpack, verbose ? CONNECT_VERBOSE : 0); - strbuf_release(&sb); return 0; } |