ソースを参照

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)