From: René Scharfe Date: Mon, 28 Jul 2014 18:31:57 +0000 (+0200) Subject: use xgetcwd() to set $GIT_DIR X-Git-Tag: v2.2.0-rc0~173^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4d3ab44d26c47d100cec39d0ef9ed9746eb7e454?hp=4d3ab44d26c47d100cec39d0ef9ed9746eb7e454 use xgetcwd() to set $GIT_DIR Instead of dying of a segmentation fault if getcwd() returns NULL, use xgetcwd() to make sure to write a useful error message and then exit in an orderly fashion. Suggested-by: Jeff King Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano ---