]> git.ipfire.org Git - thirdparty/git.git/commit - trace.c
use xgetcwd() to get the current directory or die
authorRené Scharfe <l.s.r@web.de>
Mon, 28 Jul 2014 18:30:39 +0000 (20:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Aug 2014 18:06:06 +0000 (11:06 -0700)
commit56b9f6e738af6f5238f57a29e96103cf61e3f8cd
treed6386cc8e082c60423ecd3a16b2e49969ced25fc
parentaa14e980fff55e090dd42174ab4f37fe4b3dfa1e
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