#include "test-tool.h"
#include "cache.h"
#include "config.h"
+#include "object-name.h"
+#include "setup.h"
#include "submodule-config.h"
#include "submodule.h"
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) {