]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/submodule--helper.c
cocci: apply the "cache.h" part of "the_repository.pending"
[thirdparty/git.git] / builtin / submodule--helper.c
index 4c173d8b37adfc72ec840fd88ca27e36f432aef3..25c70f415f11eed1992b5c334365db170c3c0295 100644 (file)
@@ -1174,7 +1174,7 @@ static int module_summary(int argc, const char **argv, const char *prefix)
        if (!summary_limit)
                return 0;
 
-       if (!get_oid(argc ? argv[0] : "HEAD", &head_oid)) {
+       if (!repo_get_oid(the_repository, argc ? argv[0] : "HEAD", &head_oid)) {
                if (argc) {
                        argv++;
                        argc--;
@@ -1187,7 +1187,7 @@ static int module_summary(int argc, const char **argv, const char *prefix)
                        argc--;
                }
        } else {
-               if (get_oid("HEAD", &head_oid))
+               if (repo_get_oid(the_repository, "HEAD", &head_oid))
                        die(_("could not fetch a revision for HEAD"));
        }