diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-10-22 15:57:26 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-10-22 15:57:26 +0200 |
| commit | 788abb174fbfb428dfaeaf3424bd142a807c89e4 (patch) | |
| tree | defd66a2739ba54da673f6e50d4afcc7b9462d94 /pkg/bisect | |
| parent | 084e388155d4ea60d54e44b90cd10eef660a5b76 (diff) | |
pkg/vcs: detect old git binary that can't do bisection
Diffstat (limited to 'pkg/bisect')
| -rw-r--r-- | pkg/bisect/bisect_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/bisect/bisect_test.go b/pkg/bisect/bisect_test.go index 7a1d02a90..ff4602278 100644 --- a/pkg/bisect/bisect_test.go +++ b/pkg/bisect/bisect_test.go @@ -85,6 +85,9 @@ func TestBisectCause(t *testing.T) { } } } + if !originRepo.SupportsBisection() { + t.Skip("bisection is unsupported by git (probably too old version)") + } repo := vcs.CloneTestRepo(t, baseDir, "repo", originRepo) r, err := vcs.NewRepo("test", "64", repo.Dir) if err != nil { |
