From 6894ddfd5cd46056e42d9cd0368e7cdbe37f9ec3 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Tue, 28 Aug 2018 04:04:18 +0100 Subject: [PATCH] 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. --- vcs.go | 1 - 1 file changed, 1 deletion(-) diff --git a/vcs.go b/vcs.go index 584ed899..aba8c0cf 100644 --- a/vcs.go +++ b/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()