@@ -881,7 +881,7 @@ static int run_am(struct rebase_options *opts)
reset_head(the_repository, &opts->orig_head,
opts->head_name, 0,
- "HEAD", NULL, DEFAULT_REFLOG_ACTION);
+ NULL, NULL, DEFAULT_REFLOG_ACTION);
error(_("\ngit encountered an error while preparing the "
"patches to replay\n"
"these revisions:\n"
@@ -2082,7 +2082,7 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
options.head_name ? options.head_name : "detached HEAD",
oid_to_hex(&options.onto->object.oid));
reset_head(the_repository, NULL, options.head_name,
- RESET_HEAD_REFS_ONLY, "HEAD", msg.buf, NULL);
+ RESET_HEAD_REFS_ONLY, NULL, msg.buf, NULL);
strbuf_release(&msg);
ret = finish_rebase(&options);
goto cleanup;