From: Paul Eggert Date: Fri, 2 Oct 2015 19:40:57 +0000 (-0700) Subject: Allow autogen even when Git is not installed X-Git-Tag: emacs-25.0.90~1223^2~28 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4cace70436a58a88843420dad26e56ec35e162a5;p=emacs.git Allow autogen even when Git is not installed * autogen.sh: Test ‘git status’ before trying to use Git. --- diff --git a/autogen.sh b/autogen.sh index 926915c1af1..563a0244ca8 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.