From 42d3a37026616a8cb3a9da11ab8e5565ca6b6074 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 14 Oct 2024 18:09:10 +0200 Subject: pkg/vcs: change HeadCommit to Commit Currently we have HeadCommit function that returns info about the HEAD commit. Change it to a more flexible Commit function that can return info about any commit. This will be used in future changes. --- pkg/bisect/bisect_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/bisect/bisect_test.go') diff --git a/pkg/bisect/bisect_test.go b/pkg/bisect/bisect_test.go index 6731eb235..5160cffed 100644 --- a/pkg/bisect/bisect_test.go +++ b/pkg/bisect/bisect_test.go @@ -133,7 +133,7 @@ func (env *testEnv) Test(numVMs int, reproSyz, reproOpts, reproC []byte) ([]inst } func (env *testEnv) headCommit() int { - com, err := env.r.HeadCommit() + com, err := env.r.Commit(vcs.HEAD) if err != nil { env.t.Fatal(err) } -- cgit mrf-deployment