mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-09 13:47:11 +02:00
test: fix TagNamesAt
Co-authored-by: Jesse Duffield <jessedduffield@gmail.com>
This commit is contained in:
parent
36c2b00336
commit
72a92d748f
@ -15,7 +15,7 @@ func (self *Git) CurrentBranchName(expectedName string) *Git {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *Git) TagNamesAt(ref string, expectedNames []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 {
|
func (self *Git) assert(cmdStr string, expected string) *Git {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user