summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-09-06 11:42:12 -0700
committerJunio C Hamano <gitster@pobox.com>2011-09-06 11:42:12 -0700
commit48f36dcd7320d27a840e89fc2aa7ab11716951c6 (patch)
tree404b25022bc48ca9eda54774c9001e30e34c89d1 /transport.c
parentb32128793de296348a565e8f7c4257ec82208a48 (diff)
parent509d59705ee07094bcc56b49a17ba0ae983da50f (diff)
downloadgit-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.c10
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;
}