diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-01-19 11:40:04 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-01-19 20:10:41 +0100 |
commit | bb02e95f3b25d933272bcf9d6883828d26271f69 (patch) | |
tree | e06d8d58cd0654209b25de8e18adb0bba0f0b63f /repository.c | |
parent | sequencer: clean up pseudo refs with REF_NO_DEREF (diff) | |
download | git-bb02e95f3b25d933272bcf9d6883828d26271f69.tar.xz git-bb02e95f3b25d933272bcf9d6883828d26271f69.zip |
sequencer: delete REBASE_HEAD in correct repo when picking commits
When picking commits, we delete some state before executing the next
sequencer action on interactive rebases. But while we use the correct
repository to calculate paths to state files that need deletion, we use
the repo-less `delete_ref()` function to delete REBASE_HEAD. Thus, if
the sequencer ran in a different repository than `the_repository`, we
would end up deleting the ref in the wrong repository.
Fix this by using `refs_delete_ref()` instead.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'repository.c')
0 files changed, 0 insertions, 0 deletions