commit | 9cb596d162f55395fcb9f65876b08b386d57ba95 | [log] [tgz] |
---|---|---|
author | Hyang-Ah Hana Kim <hakim@google.com> | Thu Jan 15 12:59:02 2015 -0500 |
committer | Hyang-Ah Hana Kim <hyangah@gmail.com> | Fri Jan 16 17:01:19 2015 +0000 |
tree | c14186c3b78839c7714be95728c64ddfec576c97 | |
parent | 239a856408ab943eed09cc1965307a468801c204 [diff] |
git-codereview: cleanup tmp directory if newGitTest fails. This sets up a deferred os.RemoveAll call that runs only if newGitTest fails to return a gitTest instance. Change-Id: I62814e47d2cf152e3b5fcb3dd07da8df2fb63091 Reviewed-on: https://go-review.googlesource.com/2900 Reviewed-by: Andrew Gerrand <adg@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>