symlinks: remove PATH_MAX limitation
commite7c730530065fb2f366ecbcb1e71d7f7346b6a25
authorKarsten Blees <karsten.blees@gmail.com>
Fri, 4 Jul 2014 22:41:46 +0000 (5 00:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jul 2014 18:22:42 +0000 (7 11:22 -0700)
treecd6299bca9a68f2df452643eb878ba0cd2bf275f
parentc2f7b1026e33e308782fcb1b60e3d7af107fdc18
symlinks: remove PATH_MAX limitation

'git checkout' fails if a directory is longer than PATH_MAX, because the
lstat_cache in symlinks.c checks if the leading directory exists using
PATH_MAX-bounded string operations.

Remove the limitation by using strbuf instead.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
preload-index.c
symlinks.c