]> code.delx.au - gnu-emacs/commitdiff
Allow autogen even when Git is not installed
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 2 Oct 2015 19:40:57 +0000 (12:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 2 Oct 2015 19:41:31 +0000 (12:41 -0700)
* autogen.sh: Test ‘git status’ before trying to use Git.

autogen.sh

index 926915c1af1e985834a98b91c7eaf234994a56f8..563a0244ca8c1f7ac6a2b58dbcb4757f99b4f56d 100755 (executable)
@@ -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.