]> 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>
Thu, 7 Jan 2016 01:23:05 +0000 (01:23 +0000)
commit24ef1d60f09314a84ce5915da9caa700cb51f816
treea34f05d45d18934a146b25fb662f6409b937aa55
parentfb142ee9b99b208d59079e8830fb45131b961991
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.

Originally by Tamir Duberstein but updated by iant & rsc to add
the filepath.Join logic.

Fixes #11211 (again).

Change-Id: I6d29b5ae39ba456088ae1fb5d41014cb91c86897
Reviewed-on: https://go-review.googlesource.com/18323
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/dist/build.go