bootstrap: honor --no-git
authorEric Blake <eblake@redhat.com>
Wed, 3 Jul 2013 19:48:58 +0000 (13:48 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 3 Jul 2013 20:08:46 +0000 (14:08 -0600)
commitb72ff2a45efde544c406804186d37a3254728571
tree53ccfc659e1901bece22319378e96c64380de68f
parentf40e61ea0c4940b027aade7dd48948aa93f133a4
bootstrap: honor --no-git

Based on a report by Chandrashekar Shastri, at
https://bugzilla.redhat.com/show_bug.cgi?id=979360

The intent behind the original addition of --no-git in commit
824f8d16 was to allow builds on a machine that either has no
git, or where git is prevented from using the network; yet where
the user had other means of checking out the correct version of
gnulib (such as using an NFS share).  But in practice, we were
still trying to use git, in spite of being told where gnulib-tool
already lives.  This fixes bootstrap to match the original
intent, by avoiding all direct use of git or submodules (any
indirect use of git, such as by autopoint, is beyond our control;
but at least that use does not require network access).  It is
still up to the end user to ensure that GNULIB_SRCDIR points
to the intended gnulib commit.

* build-aux/bootstrap: Don't even try to use git when user is
pointing to a static checkout.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
build-aux/bootstrap