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.
This commit is contained in:
morganamilo 2018-08-28 04:04:18 +01:00
parent 31aca68980
commit 6894ddfd5c
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

1
vcs.go
View file

@ -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()