可以指定git fetch的超时时间吗? [英] Can you specify a timeout to git fetch?
本文介绍了可以指定git fetch的超时时间吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些用python编写的git命令,如果没有连接,有时git fetch
可能会挂几个小时.有没有办法超时并报告故障?
I have some git commands scripted in python and occasionally git fetch
can hang for hours if there is no connectivity. Is there a way to time it out and report a failure instead?
推荐答案
不可以,您需要使用包装器使命令超时.
No you can't, you need to timeout the command using a wrapper.
这篇关于可以指定git fetch的超时时间吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文