summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-10-02 12:40:57 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2015-10-02 12:41:31 -0700
commit4cace70436a58a88843420dad26e56ec35e162a5 (patch)
tree979f618eb2ed09d42015f141574f73496a5a43ab /autogen.sh
parenta5c20339c5318a59b0cafd7df6bf476e957d05d4 (diff)
downloademacs-4cace70436a58a88843420dad26e56ec35e162a5.tar.gz
Allow autogen even when Git is not installed
* autogen.sh: Test ‘git status’ before trying to use Git.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh2
1 files changed, 1 insertions, 1 deletions
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.