aboutsummaryrefslogtreecommitdiffstats
path: root/fetch-pack.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-04-08 21:50:10 -0700
committerJunio C Hamano <gitster@pobox.com>2021-04-08 21:50:10 -0700
commit6db01a73085b8f34d958dd537bbca82a39187885 (patch)
treedf98cb81193e938f933d13473efef96992881297 /fetch-pack.c
parent89b43f80a514aee58b662ad606e6352e03eaeee4 (diff)
parent81ed96a9b2c5ad8a3b1ea04fd6cd273557b76c58 (diff)
downloadgit-6db01a73085b8f34d958dd537bbca82a39187885.tar.gz
Merge branch 'jt/fetch-pack-request-fix' into jt/push-negotiation
* jt/fetch-pack-request-fix: fetch-pack: buffer object-format with other args
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 6e68276aa3..2318ebe680 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -1251,7 +1251,7 @@ static int send_fetch_request(struct fetch_negotiator *negotiator, int fd_out,
if (hash_algo_by_ptr(the_hash_algo) != hash_algo)
die(_("mismatched algorithms: client %s; server %s"),
the_hash_algo->name, hash_name);
- packet_write_fmt(fd_out, "object-format=%s", the_hash_algo->name);
+ packet_buf_write(&req_buf, "object-format=%s", the_hash_algo->name);
} else if (hash_algo_by_ptr(the_hash_algo) != GIT_HASH_SHA1) {
die(_("the server does not support algorithm '%s'"),
the_hash_algo->name);