From 55e7ed8ef7562db847eab7e68adf7f49693185cd Mon Sep 17 00:00:00 2001 From: morganamilo Date: Tue, 17 Apr 2018 20:06:55 +0100 Subject: [PATCH] Remove duplicate cmd.Run() There was a duplicate cmd.Run() that somehow went unnoticed. It was also missing an error check, so it was in the code but had no ill effects. In 86bfacd253aa50f1fdc67c527b435f15e19da24a the error check was added. This caused it to fail every time sure to the cmd already being ran. Remove the duplicate cmd.Run() altogether. --- vcs.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/vcs.go b/vcs.go index c091efdc..9b120b7d 100644 --- a/vcs.go +++ b/vcs.go @@ -156,11 +156,6 @@ func getCommit(url string, branch string, protocols []string) string { continue } - err = cmd.Run() - if err != nil { - continue - } - stdout := outbuf.String() split := strings.Fields(stdout)