Skip to content

Commit 6db01a7

Browse files
committed
Merge branch 'jt/fetch-pack-request-fix' into jt/push-negotiation
* jt/fetch-pack-request-fix: fetch-pack: buffer object-format with other args
2 parents 89b43f8 + 81ed96a commit 6db01a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fetch-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ static int send_fetch_request(struct fetch_negotiator *negotiator, int fd_out,
12511251
if (hash_algo_by_ptr(the_hash_algo) != hash_algo)
12521252
die(_("mismatched algorithms: client %s; server %s"),
12531253
the_hash_algo->name, hash_name);
1254-
packet_write_fmt(fd_out, "object-format=%s", the_hash_algo->name);
1254+
packet_buf_write(&req_buf, "object-format=%s", the_hash_algo->name);
12551255
} else if (hash_algo_by_ptr(the_hash_algo) != GIT_HASH_SHA1) {
12561256
die(_("the server does not support algorithm '%s'"),
12571257
the_hash_algo->name);

0 commit comments

Comments
 (0)