>From 8ccfe1163855d3a2c13e3c3915254dadd0340efb Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 2 Oct 2015 12:40:57 -0700 Subject: [PATCH] Allow autogen even when Git is not installed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * autogen.sh: Test ‘git status’ before trying to use Git. --- autogen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 926915c..563a024 100755 --- a/autogen.sh +++ b/autogen.sh @@ -218,7 +218,7 @@ echo timestamp > src/stamp-h.in || exit ## Configure Git, if using Git. -if test -d .git; then +if test -d .git && (git status -s) >/dev/null 2>&1; then # Configure 'git diff' hunk header format. -- 2.1.0