diff options
Diffstat (limited to 'pkg/integration/components/shell.go')
-rw-r--r-- | pkg/integration/components/shell.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/integration/components/shell.go b/pkg/integration/components/shell.go index 60c627918..60652b2ad 100644 --- a/pkg/integration/components/shell.go +++ b/pkg/integration/components/shell.go @@ -148,6 +148,10 @@ func (self *Shell) Checkout(name string) *Shell { return self.RunCommand([]string{"git", "checkout", name}) } +func (self *Shell) DeleteBranch(name string) *Shell { + return self.RunCommand([]string{"git", "branch", "-D", name}) +} + func (self *Shell) Merge(name string) *Shell { return self.RunCommand([]string{"git", "merge", "--commit", "--no-ff", name}) } |