From 72a92d748f636bf5edb28f92044450a86b0e1dd2 Mon Sep 17 00:00:00 2001 From: Ryoga Date: Thu, 9 Feb 2023 21:02:43 +0900 Subject: [PATCH] test: fix TagNamesAt Co-authored-by: Jesse Duffield --- pkg/integration/components/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {