aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs/git_test_util.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-10-15 09:47:17 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-10-21 10:22:10 +0200
commite2605999d9d1fa4e98bcf850ed007cfd98f27383 (patch)
treed87623db89fd2db41621f1041de4b6674ac84f55 /pkg/vcs/git_test_util.go
parentff4a3345a1b2a40ff1b8b983153d0b1fcc72f1c5 (diff)
pkg/vcs: add ReleaseTag
Add ReleaseTag method that returns last release tag for the given commit. Update #2171
Diffstat (limited to 'pkg/vcs/git_test_util.go')
-rw-r--r--pkg/vcs/git_test_util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/vcs/git_test_util.go b/pkg/vcs/git_test_util.go
index 09f5a6af6..5ef6c50c3 100644
--- a/pkg/vcs/git_test_util.go
+++ b/pkg/vcs/git_test_util.go
@@ -90,7 +90,7 @@ func (repo *TestRepo) SetTag(tag string) {
func (repo *TestRepo) SupportsBisection() bool {
// Detect too old git binary. --no-contains appeared in git 2.13.
- _, err := repo.repo.previousReleaseTags("HEAD", true)
+ _, err := repo.repo.previousReleaseTags("HEAD", true, false)
return err == nil ||
!strings.Contains(err.Error(), "usage: git tag") &&
!strings.Contains(err.Error(), "error: unknown option")