diff --git a/pkg/integration/components/git.go b/pkg/integration/components/git.go index 4f1933efa..6f4d80f1a 100644 --- a/pkg/integration/components/git.go +++ b/pkg/integration/components/git.go @@ -15,7 +15,7 @@ func (self *Git) CurrentBranchName(expectedName string) *Git { } func (self *Git) TagNamesAt(ref string, expectedNames []string) *Git { - return self.assert(fmt.Sprintf(`git tag --contains "%s"`, ref), strings.Join(expectedNames, "\n")) + return self.assert(fmt.Sprintf(`git tag --sort=v:refname --points-at "%s"`, ref), strings.Join(expectedNames, "\n")) } func (self *Git) assert(cmdStr string, expected string) *Git {