sha1_file: replace PATH_MAX buffer with strbuf in prepare_packed_git_one()
commit880fb8de67af3aeeae5a59ba5ce84ad3d0cf1dda
authorRené Scharfe <l.s.r@web.de>
Mon, 30 Jun 2014 16:55:52 +0000 (30 12:55 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Jun 2014 20:43:16 +0000 (30 13:43 -0700)
tree8eedbb981ac28c2371533f91f8a2d18dba4681c2
parent341e7e8eda3dbeb6867f4f8f45b671201b807de5
sha1_file: replace PATH_MAX buffer with strbuf in prepare_packed_git_one()

Instead of using strbuf to create a message string in case a path is
too long for our fixed-size buffer, replace that buffer with a strbuf
and thus get rid of the limitation.

Helped-by: Duy Nguyen <pclouds@gmail.com>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c