use xgetcwd() to get the current directory or die
commit7f5ba7f013376a473d76e230a4574465ea20695d
authorRené Scharfe <l.s.r@web.de>
Mon, 28 Jul 2014 18:30:39 +0000 (28 20:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Jul 2014 19:17:53 +0000 (29 12:17 -0700)
tree2c6b163b446e3aac1f77d9ef78d1fed6916feada
parent48834f9c2698648171aa3d0c0849279732bcd6f4
use xgetcwd() to get the current directory or die

Convert several calls of getcwd() and die() to use xgetcwd() instead.
This way we get rid of fixed-size buffers (which can be too small
depending on the used file system) and gain consistent error messages.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/init-db.c
builtin/rev-parse.c
dir.c
setup.c
trace.c