]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.5] build: Fix bootstrap.bash for official source tarballs
authorDave Cheney <dave@cheney.net>
Thu, 3 Sep 2015 22:47:40 +0000 (08:47 +1000)
committerDave Cheney <dave@cheney.net>
Fri, 4 Sep 2015 02:10:56 +0000 (02:10 +0000)
commitc20b8e145a471f242fba18f30dc830dac71ce50e
treeaeab1ba2bd14b46ac630683b4794a97781203ac2
parent5aa3ba8673a060345e264216650cb145de124d66
[release-branch.go1.5] 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>
Reviewed-on: https://go-review.googlesource.com/14281
src/bootstrap.bash