go /
review /
18314f7ef99b73828d56cef081ee5a9572fe902c git-codereview: work around compiler bug
Using the 'return &gitTest{...}' form the gt variable is not
set during the deferred func execution, causing the tmp dir
to be removed always, making all the tests fail.
Issue golang/go#9738.
Change-Id: Iac91926ea5d756547eaade52effe68bc7706c17a
Reviewed-on: https://go-review.googlesource.com/3620
Reviewed-by: Andrew Gerrand <adg@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
1 file changed