MCPcopy Index your code
hub / github.com/jesseduffield/lazygit / AssertRemoteTagNotFound

Method AssertRemoteTagNotFound

pkg/integration/components/shell.go:201–203  ·  view source on GitHub ↗
(upstream, name string)

Source from the content-addressed store, hash-verified

199}
200
201func (self *Shell) AssertRemoteTagNotFound(upstream, name string) *Shell {
202 return self.RunCommandExpectError([]string{"git", "ls-remote", "--exit-code", upstream, fmt.Sprintf("refs/tags/%s", name)})
203}
204
205func (self *Shell) CreateLightweightTag(name string, ref string) *Shell {
206 return self.RunCommand([]string{"git", "tag", name, ref})

Calls 2

RunCommandExpectErrorMethod · 0.95
SprintfMethod · 0.65

Tested by

no test coverage detected