| 844 | } |
| 845 | |
| 846 | void gitmodules_config_oid(const struct object_id *commit_oid) |
| 847 | { |
| 848 | struct strbuf rev = STRBUF_INIT; |
| 849 | struct object_id oid; |
| 850 | |
| 851 | submodule_cache_check_init(the_repository); |
| 852 | |
| 853 | if (gitmodule_oid_from_commit(commit_oid, &oid, &rev)) { |
| 854 | git_config_from_blob_oid(gitmodules_cb, rev.buf, |
| 855 | the_repository, &oid, the_repository, |
| 856 | CONFIG_SCOPE_UNKNOWN); |
| 857 | } |
| 858 | strbuf_release(&rev); |
| 859 | |
| 860 | the_repository->submodule_cache->gitmodules_read = 1; |
| 861 | } |
| 862 | |
| 863 | const struct submodule *submodule_from_name(struct repository *r, |
| 864 | const struct object_id *treeish_name, |
no test coverage detected