| 828 | } |
| 829 | |
| 830 | void repo_read_gitmodules(struct repository *repo, int skip_if_read) |
| 831 | { |
| 832 | submodule_cache_check_init(repo); |
| 833 | |
| 834 | if (repo->submodule_cache->gitmodules_read && skip_if_read) |
| 835 | return; |
| 836 | |
| 837 | if (repo_read_index(repo) < 0) |
| 838 | return; |
| 839 | |
| 840 | if (!is_gitmodules_unmerged(repo->index)) |
| 841 | config_from_gitmodules(gitmodules_cb, repo, repo); |
| 842 | |
| 843 | repo->submodule_cache->gitmodules_read = 1; |
| 844 | } |
| 845 | |
| 846 | void gitmodules_config_oid(const struct object_id *commit_oid) |
| 847 | { |
no test coverage detected