Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
55e7ed8ef7
1 değiştirilmiş dosya ile 0 ekleme ve 5 silme
  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)