From e2605999d9d1fa4e98bcf850ed007cfd98f27383 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 15 Oct 2020 09:47:17 +0200 Subject: pkg/vcs: add ReleaseTag Add ReleaseTag method that returns last release tag for the given commit. Update #2171 --- pkg/vcs/git_test_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/vcs/git_test_util.go') 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") -- cgit mrf-deployment