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
tree: cb6c65c1814a2ab3b8dd8fde8189ee667e7c8814
  1. .gitattributes
  2. README
  3. git-codereview/