本文介绍了git子模块更新很慢。我怎样才能调试它为什么很慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用git submodule和 git submodule update --init --recursive
命令很慢(8秒),尽管似乎没有更新要更新。 p>
我想调试为什么它很慢,但似乎没有 - verbose
开关。任何想法调试它在做什么?
我正在运行Ubuntu 14.04和Git 1.9。
解决方案
由于没有实际结帐和复制的变化,这留下了两个主要根源:
- 子模块的响应速度缓慢
- 或
git子模块更新
自旧git 1.9开始优化:查看问题是否持续在 $ / $>I'm using git submodule and
git submodule update --init --recursive
command is slow (8 sec) although there seems no changes to be updated.I want to debug why it's slow but it seems there is no
--verbose
switch. Any idea to debug what it's doing?I'm running Ubuntu 14.04 and Git 1.9.
解决方案Since there is no change to actually checkout and copy, that leaves two main root causes:
- the url of the submodule is slow to respond
- or
git submodule update
was optimized since the old git 1.9: see if the issue persists with the latest git 2.6.4 found in the launchpad ppa
这篇关于git子模块更新很慢。我怎样才能调试它为什么很慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!