add tag checkout test

This commit is contained in:
Jesse Duffield 2023-02-20 18:45:14 +11:00
parent 76109a4c44
commit daf8176dd7
3 changed files with 36 additions and 0 deletions

View file

@ -136,6 +136,10 @@ func (self *Shell) EmptyCommit(message string) *Shell {
return self.RunCommand(fmt.Sprintf("git commit --allow-empty -m \"%s\"", message))
}
func (self *Shell) CreateLightweightTag(name string, ref string) *Shell {
return self.RunCommand(fmt.Sprintf("git tag %s %s", name, ref))
}
// convenience method for creating a file and adding it
func (self *Shell) CreateFileAndAdd(fileName string, fileContents string) *Shell {
return self.