mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
built-in rebase: use the correct reflog when switching branches
By mistake, we used the reflog intended for ORIG_HEAD. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
e6aac8177d
commit
eaf81605b8
1 changed files with 1 additions and 1 deletions
|
@ -475,7 +475,7 @@ static int reset_head(struct object_id *oid, const char *action,
|
|||
detach_head ? REF_NO_DEREF : 0,
|
||||
UPDATE_REFS_MSG_ON_ERR);
|
||||
else {
|
||||
ret = update_ref(reflog_orig_head, switch_to_branch, oid,
|
||||
ret = update_ref(reflog_head, switch_to_branch, oid,
|
||||
NULL, 0, UPDATE_REFS_MSG_ON_ERR);
|
||||
if (!ret)
|
||||
ret = create_symref("HEAD", switch_to_branch,
|
||||
|
|
Loading…
Reference in a new issue