From 64367d3499ec323af2e18326996c8c73924eab50 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Wed, 15 Jan 2014 20:10:29 +1300 Subject: [PATCH] bootstrap: check for git checkout correctly. * 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 --- bootstrap | 4 ++-- gl/build-aux/bootstrap.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bootstrap b/bootstrap index db3125562..2094e73ad 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 71ff3aefe..8441bdc62 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 } -- 2.47.3