setup: convert setup_git_directory_gently_1 et al. to strbuf
commit7333ed1788b4f2b162a35003044d77a716732a1f
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>
Tue, 26 Aug 2014 18:06:04 +0000 (26 11:06 -0700)
tree230375db7638058facd456e8676138f0a6a17082
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