aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-04-01 10:28:18 -0700
committerJunio C Hamano <gitster@pobox.com>2026-04-01 10:28:18 -0700
commit0a39ec283cadafeae5f542a26569e4cec6f36fae (patch)
treec4f1b637486c01c3dd2da6eabafcb20b284d4fc1 /builtin
parent270e10ad6dda3379ea0da7efd11e4fbf2cd7a325 (diff)
parent640657ffd06999ec1ec3b1d030b7f5aac6b7f57b (diff)
downloadgit-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 'builtin')
-rw-r--r--builtin/am.c2
-rw-r--r--builtin/fast-import.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/builtin/am.c b/builtin/am.c
index 9d0b51c651..fe6e087eee 100644
--- a/builtin/am.c
+++ b/builtin/am.c
@@ -1188,7 +1188,7 @@ static void am_append_signoff(struct am_state *state)
{
struct strbuf sb = STRBUF_INIT;
- strbuf_attach(&sb, state->msg, state->msg_len, state->msg_len);
+ strbuf_attach(&sb, state->msg, state->msg_len, state->msg_len + 1);
append_signoff(&sb, 0, 0);
state->msg = strbuf_detach(&sb, &state->msg_len);
}
diff --git a/builtin/fast-import.c b/builtin/fast-import.c
index 9fc6c35b74..570fd048d7 100644
--- a/builtin/fast-import.c
+++ b/builtin/fast-import.c
@@ -3307,7 +3307,7 @@ static void cat_blob(struct object_entry *oe, struct object_id *oid)
cat_blob_write("\n", 1);
if (oe && oe->pack_id == pack_id) {
last_blob.offset = oe->idx.offset;
- strbuf_attach(&last_blob.data, buf, size, size);
+ strbuf_attach(&last_blob.data, buf, size, size + 1);
last_blob.depth = oe->depth;
} else
free(buf);