Skip to content

Commit d175417

Browse files
arschlesAaron Schlesinger
authored andcommitted
ref(git.go): remove unused code
1 parent 4cccc3a commit d175417

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

pkg/git/git.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,6 @@ func Receive(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)
141141
return nil, nil
142142
}
143143

144-
func execAs(user, cmd string, args ...string) *exec.Cmd {
145-
fullCmd := cmd + " " + strings.Join(args, " ")
146-
return exec.Command("su", user, "-c", fullCmd)
147-
}
148-
149144
// cleanRepoName cleans a repository name for a git-sh operation.
150145
func cleanRepoName(name string) (string, error) {
151146
if len(name) == 0 {

0 commit comments

Comments
 (0)