diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-04-01 10:28:18 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-04-01 10:28:18 -0700 |
| commit | 0a39ec283cadafeae5f542a26569e4cec6f36fae (patch) | |
| tree | c4f1b637486c01c3dd2da6eabafcb20b284d4fc1 /trailer.c | |
| parent | 270e10ad6dda3379ea0da7efd11e4fbf2cd7a325 (diff) | |
| parent | 640657ffd06999ec1ec3b1d030b7f5aac6b7f57b (diff) | |
| download | git-0a39ec283cadafeae5f542a26569e4cec6f36fae.tar.xz | |
Merge branch 'vp/http-rate-limit-retries'
The HTTP transport learned to react to "429 Too Many Requests".
* vp/http-rate-limit-retries:
http: add support for HTTP 429 rate limit retries
strbuf_attach: fix call sites to pass correct alloc
strbuf: pass correct alloc to strbuf_attach() in strbuf_reencode()
Diffstat (limited to 'trailer.c')
| -rw-r--r-- | trailer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1041,7 +1041,7 @@ static struct trailer_block *trailer_block_get(const struct process_trailer_opti for (ptr = trailer_lines; *ptr; ptr++) { if (last && isspace((*ptr)->buf[0])) { struct strbuf sb = STRBUF_INIT; - strbuf_attach(&sb, *last, strlen(*last), strlen(*last)); + strbuf_attach(&sb, *last, strlen(*last), strlen(*last) + 1); strbuf_addbuf(&sb, *ptr); *last = strbuf_detach(&sb, NULL); continue; |
