]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
bootstrap: check for git checkout correctly.
authorGary V. Vaughan <gary@gnu.org>
Wed, 15 Jan 2014 07:10:29 +0000 (20:10 +1300)
committerGary V. Vaughan <gary@gnu.org>
Wed, 15 Jan 2014 07:45:31 +0000 (20:45 +1300)
* gl/bulid-aux/bootstrap.in (func_require_git): Use .git instead
of .gitignore to recognise a git checkout.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
bootstrap
gl/build-aux/bootstrap.in

index db312556205024de7eefd325fa8d960600f39cd1..2094e73ad733aada1bced45f1f3c5706dc45add4 100755 (executable)
--- 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
     }
 
index 71ff3aefe661412a8f09cebff0c5a23034468c80..8441bdc6270662a5770fa6ff7297a81dbb646d52 100755 (executable)
@@ -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
     }