aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper/test-partial-clone.c
diff options
context:
space:
mode:
Diffstat (limited to 't/helper/test-partial-clone.c')
-rw-r--r--t/helper/test-partial-clone.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/t/helper/test-partial-clone.c b/t/helper/test-partial-clone.c
index 3f102cfddd..0ead529167 100644
--- a/t/helper/test-partial-clone.c
+++ b/t/helper/test-partial-clone.c
@@ -1,7 +1,8 @@
-#include "cache.h"
#include "test-tool.h"
+#include "hex.h"
#include "repository.h"
-#include "object-store.h"
+#include "object-store-ll.h"
+#include "setup.h"
/*
* Prints the size of the object corresponding to the given hash in a specific
@@ -20,7 +21,7 @@ static void object_info(const char *gitdir, const char *oid_hex)
if (repo_init(&r, gitdir, NULL))
die("could not init repo");
- if (parse_oid_hex(oid_hex, &oid, &p))
+ if (parse_oid_hex_algop(oid_hex, &oid, &p, r.hash_algo))
die("could not parse oid");
if (oid_object_info_extended(&r, &oid, &oi, 0))
die("could not obtain object info");