Kaynağa Gözat

Remove the timeout warning for vcs checks

This message is proving to be more misleading than helpful. For
git+https sources, many hosts seem to always timeout when trying
ls-remote over git:// but then succeed on https://. This leads to
a time out message being displayed even though the URL was queried
successfully on the second try.
morganamilo 6 yıl önce
ebeveyn
işleme
6894ddfd5c
1 değiştirilmiş dosya ile 0 ekleme ve 1 silme
  1. 0 1
      vcs.go

+ 0 - 1
vcs.go

@@ -160,7 +160,6 @@ func getCommit(url string, branch string, protocols []string) string {
 		//Introduce a time out so this can not hang
 		timer := time.AfterFunc(5*time.Second, func() {
 			cmd.Process.Kill()
-			fmt.Println(bold(yellow(arrow)), "Timeout:", cyan(url))
 		})
 
 		err = cmd.Wait()