Selaa lähdekoodia

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.
morganamilo 7 vuotta sitten
vanhempi
commit
55e7ed8ef7
1 muutettua tiedostoa jossa 0 lisäystä ja 5 poistoa
  1. 0 5
      vcs.go

+ 0 - 5
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)