mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
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:
parent
31aca68980
commit
6894ddfd5c
1
vcs.go
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
|
//Introduce a time out so this can not hang
|
||||||
timer := time.AfterFunc(5*time.Second, func() {
|
timer := time.AfterFunc(5*time.Second, func() {
|
||||||
cmd.Process.Kill()
|
cmd.Process.Kill()
|
||||||
fmt.Println(bold(yellow(arrow)), "Timeout:", cyan(url))
|
|
||||||
})
|
})
|
||||||
|
|
||||||
err = cmd.Wait()
|
err = cmd.Wait()
|
||||||
|
Loading…
Reference in New Issue
Block a user