diff options
author | Jeff King <peff@peff.net> | 2017-03-28 15:46:40 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-30 14:59:50 -0700 |
commit | cddac45219b70f121d30468811a9fbee78fa24f2 (patch) | |
tree | 6f0f57c9b801b94cb310c7d8142b73652213c662 /t/t7601-merge-pull-config.sh | |
parent | create_branch: move msg setup closer to point of use (diff) | |
download | tgif-cddac45219b70f121d30468811a9fbee78fa24f2.tar.xz |
create_branch: use xstrfmt for reflog message
We generate a reflog message that contains some fixed text
plus a branch name, and use a buffer of size PATH_MAX + 20.
This mostly works if you assume that refnames are shorter
than PATH_MAX, but:
1. That's not necessarily true. PATH_MAX is not always the
filesystem's limit.
2. The "20" is not sufficiently large for the fixed text
anyway.
Let's just switch to a heap buffer so we don't have to even
care.
Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 't/t7601-merge-pull-config.sh')
0 files changed, 0 insertions, 0 deletions