refs: convert dwim_ref and expand_ref to struct object_id
[gitweb.git] / builtin / pull.c
index 6f772e8a224c18238cf9a75436e8ea192765e7fe..9b2d67fe43006d55bf1246b30a6e789c26174382 100644 (file)
@@ -544,7 +544,7 @@ static int pull_into_void(const struct object_id *merge_head,
        if (checkout_fast_forward(&empty_tree_oid, merge_head, 0))
                return 1;
 
-       if (update_ref("initial pull", "HEAD", merge_head->hash, curr_head->hash, 0, UPDATE_REFS_DIE_ON_ERR))
+       if (update_ref("initial pull", "HEAD", merge_head, curr_head, 0, UPDATE_REFS_DIE_ON_ERR))
                return 1;
 
        return 0;