refs: convert dwim_log to struct object_id
[gitweb.git] / builtin / am.c
index 32120f42df1a3d25342228d99ab6a8d4ab2eed09..c9bb14a6c2c3873b82ce161a0240a88666eaab3c 100644 (file)
@@ -2135,7 +2135,7 @@ static void am_abort(struct am_state *state)
 
        am_rerere_clear();
 
-       curr_branch = resolve_refdup("HEAD", 0, curr_head.hash, NULL);
+       curr_branch = resolve_refdup("HEAD", 0, &curr_head, NULL);
        has_curr_head = curr_branch && !is_null_oid(&curr_head);
        if (!has_curr_head)
                hashcpy(curr_head.hash, EMPTY_TREE_SHA1_BIN);