問題
git submodule update
コマンド使用時に、対象の外部サブリポジトリの容量が大きい場合、何も画面表示が変わらないまま固まってしまう(ように見えてしまう)
解決方法
--progress
オプションを付与することで、通常の git clone
時と同様に進捗状況が表示されるようになる。
$ git submodule update --progress
...
remote: Counting objects: 16355, done.
remote: Compressing objects: 100% (10388/10388), done.
remote: Total 16355 (delta 9044), reused 18163 (delta 8150)
Receiving objects: 100% (16355/16355), 197.16 MiB | 1.02 MiB/s, done.
備考
Git 2.11より git submodule update
の --progress
オプションが追加されている。
https://github.com/git/git/commit/72c5f88311dab7149fcca1f6029414ccb776fee8