]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: improve isGitRepo to handle git "worktree"s
authorTamir Duberstein <tamird@gmail.com>
Wed, 30 Dec 2015 16:15:38 +0000 (11:15 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 6 Jan 2016 15:04:13 +0000 (15:04 +0000)
commitab096d587f9bb5dcdf895511ee6d213aade7e30f
tree0151e0e1985a38cd9333bb6415ddd4fa167408d3
parentbe20948e27da60640b7cf27c8ae29214e5a214c2
cmd/dist: improve isGitRepo to handle git "worktree"s

Simply checking the exit code of `git rev-parse --git-dir` should
suffice here, but that requires deviating from the infrastructure
provided by `run`, so I've left that for a future change.

Fixes #11211.

Change-Id: I7cbad86a8a06578f52f66f734f5447b597ddc962
Reviewed-on: https://go-review.googlesource.com/18213
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/dist/build.go