summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap4
-rwxr-xr-xgl/build-aux/bootstrap.in4
2 files changed, 4 insertions, 4 deletions
diff --git a/bootstrap b/bootstrap
index db312556..2094e73a 100755
--- a/bootstrap
+++ b/bootstrap
@@ -3698,8 +3698,8 @@ func_require_git ()
$opt_skip_git && GIT=true
test true = "$GIT" || {
- if test -f .gitignore && ($GIT --version) >/dev/null 2>&1; then :; else
- GIT=true
+ if test -f .git; then
+ ($GIT --version) >/dev/null 2>&1 || GIT=true
fi
}
diff --git a/gl/build-aux/bootstrap.in b/gl/build-aux/bootstrap.in
index 71ff3aef..8441bdc6 100755
--- a/gl/build-aux/bootstrap.in
+++ b/gl/build-aux/bootstrap.in
@@ -1367,8 +1367,8 @@ func_require_git ()
$opt_skip_git && GIT=true
test true = "$GIT" || {
- if test -f .gitignore && ($GIT --version) >/dev/null 2>&1; then :; else
- GIT=true
+ if test -f .git; then
+ ($GIT --version) >/dev/null 2>&1 || GIT=true
fi
}