aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-testbuild/testbuild.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-10-14 18:09:10 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-10-15 09:08:36 +0000
commit42d3a37026616a8cb3a9da11ab8e5565ca6b6074 (patch)
tree6be4d678b1a05ef78450a4e9133eba3590509589 /tools/syz-testbuild/testbuild.go
parent7eb57b4aa460c38365f8c5aa77d06c3b750daa4b (diff)
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.
Diffstat (limited to 'tools/syz-testbuild/testbuild.go')
-rw-r--r--tools/syz-testbuild/testbuild.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-testbuild/testbuild.go b/tools/syz-testbuild/testbuild.go
index 919ee0c67..ca6735e70 100644
--- a/tools/syz-testbuild/testbuild.go
+++ b/tools/syz-testbuild/testbuild.go
@@ -95,7 +95,7 @@ func main() {
tool.Fail(err)
}
bisecter := repo.(vcs.Bisecter)
- head, err := repo.HeadCommit()
+ head, err := repo.Commit(vcs.HEAD)
if err != nil {
tool.Fail(err)
}