]> Cypherpunks repositories - gostls13.git/commit
build: Fix bootstrap.bash for official source tarballs
authorFabian Wickborn <fabian@wickborn.net>
Thu, 20 Aug 2015 08:45:51 +0000 (10:45 +0200)
committerAndrew Gerrand <adg@golang.org>
Tue, 1 Sep 2015 19:52:59 +0000 (19:52 +0000)
commit1ac84d4300a18954ce8a0e3daa9c1d54573e1552
treec827e8a2b7d0a484cea7bbb4f1d0623bf9dae741
parente92d0d82e05dfc47376fe3eea8df12cce0ba684f
build: Fix bootstrap.bash for official source tarballs

At the moment, bootstrap.bash assumes it is called from a git working
copy. Hence, it fails to complete when running in an unpacked official
source tarball where .git and .gitignore do not exist. This fix adds a
test for existence for .git and a -f switch for the removal of
.gitignore.

Fixes #12223

Change-Id: I7f305b83b38d5115504932bd38dadb7bdeb5d487
Reviewed-on: https://go-review.googlesource.com/13770
Reviewed-by: Dave Cheney <dave@cheney.net>
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/bootstrap.bash