Skip to content

Commit

Permalink
test: fix TagNamesAt
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse Duffield <[email protected]>
  • Loading branch information
Ryooooooga and jesseduffield committed Feb 19, 2023
1 parent 36c2b00 commit 72a92d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/integration/components/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 72a92d7

Please sign in to comment.