summaryrefslogtreecommitdiff
path: root/fetch-pack.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-05-30 17:50:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-05-30 17:50:46 (GMT)
commit0e5387cd02482a0b7d42e78900cf3c0b13a39ee2 (patch)
treeea9d4cf64756cfcf1302fbcd053c8320eeffc767 /fetch-pack.c
parentfa03d9c6990aa0f0ca675e89bde1861988d0c517 (diff)
parent5b204b7df3ed7e97040d40db9d7c31a0a645af15 (diff)
downloadgit-0e5387cd02482a0b7d42e78900cf3c0b13a39ee2.zip
git-0e5387cd02482a0b7d42e78900cf3c0b13a39ee2.tar.gz
git-0e5387cd02482a0b7d42e78900cf3c0b13a39ee2.tar.bz2
Merge branch 'jt/clone-server-option'
A brown-paper-bag bugfix to a change already in 'master'. * jt/clone-server-option: fetch-pack: send server options after command
Diffstat (limited to 'fetch-pack.c')
-rw-r--r--fetch-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetch-pack.c b/fetch-pack.c
index 3f24d0c..1c10f54 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -1115,7 +1115,7 @@ static int send_fetch_request(struct fetch_negotiator *negotiator, int fd_out,
server_supports_v2("server-option", 1)) {
int i;
for (i = 0; i < args->server_options->nr; i++)
- packet_write_fmt(fd_out, "server-option=%s",
+ packet_buf_write(&req_buf, "server-option=%s",
args->server_options->items[i].string);
}