]> git.ipfire.org Git - thirdparty/git.git/blobdiff - submodule-config.c
cocci: apply the "cache.h" part of "the_repository.pending"
[thirdparty/git.git] / submodule-config.c
index 4dc61b3a78a2916d737edf613af0f9c0e03d39c8..336732ed785dc99292ac29457f6fce8922454586 100644 (file)
@@ -535,7 +535,7 @@ static int gitmodule_oid_from_commit(const struct object_id *treeish_name,
        }
 
        strbuf_addf(rev, "%s:.gitmodules", oid_to_hex(treeish_name));
-       if (get_oid(rev->buf, gitmodules_oid) >= 0)
+       if (repo_get_oid(the_repository, rev->buf, gitmodules_oid) >= 0)
                ret = 1;
 
        return ret;