]> code.delx.au - gnu-emacs/blobdiff - autogen.sh
Allow autogen even when Git is not installed
[gnu-emacs] / 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.