| 763 | } |
| 764 | |
| 765 | static void submodule_cache_check_init(struct repository *repo) |
| 766 | { |
| 767 | if (repo->submodule_cache && repo->submodule_cache->initialized) |
| 768 | return; |
| 769 | |
| 770 | if (!repo->submodule_cache) |
| 771 | repo->submodule_cache = submodule_cache_alloc(); |
| 772 | |
| 773 | submodule_cache_init(repo->submodule_cache); |
| 774 | } |
| 775 | |
| 776 | /* |
| 777 | * Note: This function is private for a reason, the '.gitmodules' file should |
no test coverage detected