diff options
author | René Scharfe <l.s.r@web.de> | 2014-07-28 20:31:57 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-08-26 11:06:06 -0700 |
commit | 4d3ab44d26c47d100cec39d0ef9ed9746eb7e454 (patch) | |
tree | 8ef114ab2ed8e2667fa12124b18f34df5922c3f3 /contrib/mw-to-git/bin-wrapper | |
parent | use xgetcwd() to get the current directory or die (diff) | |
download | tgif-4d3ab44d26c47d100cec39d0ef9ed9746eb7e454.tar.xz |
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 <peff@peff.net>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/mw-to-git/bin-wrapper')
0 files changed, 0 insertions, 0 deletions