瀏覽代碼

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 年之前
父節點
當前提交
55e7ed8ef7
共有 1 個文件被更改,包括 0 次插入5 次删除
  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)