diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-03-20 11:01:12 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-03-20 11:01:12 +0100 |
| commit | 042e4d54190289ff0b7d908d45a8d8a040098175 (patch) | |
| tree | 940856de2d79c0b8d7ad3e3e453094f588ec449a /pkg/bisect | |
| parent | 5f5191b43f94a134bbf46272a669f4706982b48c (diff) | |
pkg/bisect: use CheckoutCommit instead of SwitchCommit
Use CheckoutCommit instead of SwitchCommitto get the crashing commit.
The problem is with trees like linux-next. They require at least fetching tags
and maybe even different tree (-history).
Use CheckoutCommit which at least fetches tags which is enough
for recent commits.
Update #501
Diffstat (limited to 'pkg/bisect')
| -rw-r--r-- | pkg/bisect/bisect.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bisect/bisect.go b/pkg/bisect/bisect.go index 21b3a64b1..eff0601b4 100644 --- a/pkg/bisect/bisect.go +++ b/pkg/bisect/bisect.go @@ -147,7 +147,7 @@ func (env *env) bisect() ([]*vcs.Commit, *report.Report, error) { if err := env.inst.BuildSyzkaller(cfg.Syzkaller.Repo, cfg.Syzkaller.Commit); err != nil { return nil, nil, err } - if _, err := env.repo.SwitchCommit(cfg.Kernel.Commit); err != nil { + if _, err := env.repo.CheckoutCommit(cfg.Kernel.Repo, cfg.Kernel.Commit); err != nil { return nil, nil, err } res, _, rep0, err := env.test() |
