aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/bisect
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-10-15 14:54:25 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-10-21 10:22:10 +0200
commitdd564a9d29871f791d7856edf3b38142b5b2c5e3 (patch)
tree0172ebab17fe35630e372f4d7305a2cbd61f0ba6 /pkg/bisect
parente2605999d9d1fa4e98bcf850ed007cfd98f27383 (diff)
pkg/vcs: add repo OptPrecious and OptDontSandbox options
The pkg/vcs code assumed that we fully manage the repo within an autonomous program. In particular it tried to repair any errors by dropping and re-creating the repo. This does not work well for command-line tools that work with a user-provided repo. Add OptPrecious for such uses. Update #2171
Diffstat (limited to 'pkg/bisect')
-rw-r--r--pkg/bisect/bisect_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bisect/bisect_test.go b/pkg/bisect/bisect_test.go
index ee730b724..3bbc2e2ea 100644
--- a/pkg/bisect/bisect_test.go
+++ b/pkg/bisect/bisect_test.go
@@ -106,7 +106,7 @@ func createTestRepo(t *testing.T) string {
}
func runBisection(t *testing.T, baseDir string, test BisectionTest) (*Result, error) {
- r, err := vcs.NewRepo("test", "64", baseDir)
+ r, err := vcs.NewRepo("test", "64", baseDir, vcs.OptPrecious)
if err != nil {
t.Fatal(err)
}