From 042e4d54190289ff0b7d908d45a8d8a040098175 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 20 Mar 2019 11:01:12 +0100 Subject: 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 --- pkg/bisect/bisect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') 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() -- cgit mrf-deployment