test-reach: test can_all_from_reach_with_flags
[gitweb.git] / merge-recursive.c
index 41366e75e20edbb086efcf99098495da27f1fe63..8155dee9a98cbea8b1045d0436e0a170b0757555 100644 (file)
@@ -27,6 +27,7 @@
 #include "dir.h"
 #include "submodule.h"
 #include "revision.h"
+#include "commit-reach.h"
 
 struct path_hashmap_entry {
        struct hashmap_entry e;
@@ -3467,7 +3468,8 @@ static struct commit *get_ref(const struct object_id *oid, const char *name)
 {
        struct object *object;
 
-       object = deref_tag(parse_object(the_repository, oid), name,
+       object = deref_tag(the_repository, parse_object(the_repository, oid),
+                          name,
                           strlen(name));
        if (!object)
                return NULL;