fetch: use heap buffer to format reflog
authorJeff King <peff@peff.net>
Tue, 28 Mar 2017 19:46:26 +0000 (15:46 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Mar 2017 21:59:50 +0000 (14:59 -0700)
commit1412f762e0363c126ea011682b61a8c9d7d7456f
tree5cdeefd73b025e5a9d519e8858c3c590df479b99
parentb0ceab98d72a4861a8cea061487169fb5468b736
fetch: use heap buffer to format reflog

Part of the reflog content comes from the environment, which
can be much larger than our fixed buffer. Let's use a heap
buffer so we avoid truncating it.

Signed-off-by: Jeff King <peff@peff.net>
builtin/fetch.c