Convert struct object to object_id
[git/git.git] / builtin / pull.c
index bf3fd3f..4b7e344 100644 (file)
@@ -743,7 +743,7 @@ static int get_octopus_merge_base(unsigned char *merge_base,
        if (!result)
                return 1;
 
-       hashcpy(merge_base, result->item->object.sha1);
+       hashcpy(merge_base, get_object_hash(result->item->object));
        return 0;
 }