setup: convert setup_git_directory_gently_1 et al. to strbuf
commit65c50e958a6a5be5cc43a5deb827a7d40a69c46a
authorRené Scharfe <l.s.r@web.de>
Mon, 28 Jul 2014 18:26:40 +0000 (28 20:26 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Jul 2014 20:51:30 +0000 (28 13:51 -0700)
treed348994af9e4b8b6b9d780a6af00538612dfbb2d
parentd13a0a97e097c6a601bafc529a716477cc94dc20
setup: convert setup_git_directory_gently_1 et al. to strbuf

Convert setup_git_directory_gently_1() and its helper functions
setup_explicit_git_dir(), setup_discovered_git_dir() and
setup_bare_git_dir() to use a struct strbuf to hold the current working
directory.  Replacing the PATH_MAX-sized buffer used before removes a
path length limition on some file systems.  The functions are converted
all in one go because they all read and write the variable cwd.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c