refs: convert peel_object to struct object_id
[gitweb.git] / unpack-trees.c
index 0dc76eddfe760249059f8caa667c990c7a0a3bb8..25740cb5937557f4d017ce89be042379bfc7a219 100644 (file)
@@ -1542,7 +1542,7 @@ static int verify_clean_subdirectory(const struct cache_entry *ce,
 
        if (S_ISGITLINK(ce->ce_mode)) {
                struct object_id oid;
-               int sub_head = resolve_gitlink_ref(ce->name, "HEAD", oid.hash);
+               int sub_head = resolve_gitlink_ref(ce->name, "HEAD", &oid);
                /*
                 * If we are not going to update the submodule, then
                 * we don't care.