shallow: add repository argument to register_shallow
[gitweb.git] / submodule.c
index 9a50168b2375d9cac306a22c8be4559dde114d95..bb133e9b932dea4d151afc40eaea0bd6bfed56e2 100644 (file)
@@ -818,7 +818,7 @@ static int check_has_commit(const struct object_id *oid, void *data)
 {
        struct has_commit_data *cb = data;
 
-       enum object_type type = oid_object_info(oid, NULL);
+       enum object_type type = oid_object_info(the_repository, oid, NULL);
 
        switch (type) {
        case OBJ_COMMIT: