From 2de67d1b24eab73840b919b566ae782830a3909b Mon Sep 17 00:00:00 2001 From: morganamilo Date: Thu, 2 Aug 2018 23:44:55 +0100 Subject: [PATCH] Show message for timed out vcs checks --- vcs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/vcs.go b/vcs.go index 2863cc01..f6abae19 100644 --- a/vcs.go +++ b/vcs.go @@ -173,6 +173,7 @@ 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()