Show message for timed out vcs checks

This commit is contained in:
morganamilo 2018-08-02 23:44:55 +01:00
parent 284c87afb6
commit 2de67d1b24
No known key found for this signature in database
GPG Key ID: 6FE9E7996B0B082E

1
vcs.go
View File

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