]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/helper/test-submodule-config.c
object-name.h: move declarations for object-name.c functions from cache.h
[thirdparty/git.git] / t / helper / test-submodule-config.c
index 22a41c409263c077843598e4cc51881a52b0ce30..4758c8654e0f85c69f0fb145ccd6f6612270f70a 100644 (file)
@@ -1,6 +1,8 @@
 #include "test-tool.h"
 #include "cache.h"
 #include "config.h"
+#include "object-name.h"
+#include "setup.h"
 #include "submodule-config.h"
 #include "submodule.h"
 
@@ -42,7 +44,7 @@ int cmd__submodule_config(int argc, const char **argv)
 
                if (commit[0] == '\0')
                        oidclr(&commit_oid);
-               else if (get_oid(commit, &commit_oid) < 0)
+               else if (repo_get_oid(the_repository, commit, &commit_oid) < 0)
                        die_usage(argc, argv, "Commit not found.");
 
                if (lookup_name) {