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 86bfacd253 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.
This commit is contained in:
morganamilo 2018-04-17 20:06:55 +01:00
parent 5fb61731a3
commit 55e7ed8ef7
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

5
vcs.go
View file

@ -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)