diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-10-02 12:40:57 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-10-02 12:41:31 -0700 |
commit | 4cace70436a58a88843420dad26e56ec35e162a5 (patch) | |
tree | 979f618eb2ed09d42015f141574f73496a5a43ab /autogen.sh | |
parent | a5c20339c5318a59b0cafd7df6bf476e957d05d4 (diff) | |
download | emacs-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-x | autogen.sh | 2 |
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. |