diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-01-19 11:39:59 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-01-19 11:10:40 -0800 |
commit | 821f6632b091dc59562f74a0c74005b34319a2e7 (patch) | |
tree | c29abf0250e249dcb56697fef348870393739afc /builtin/commit.c | |
parent | 186b115d3062e6230ee296d1ddaa0c4b72a464b5 (diff) |
sequencer: clean up pseudo refs with REF_NO_DEREF
When cleaning up the state-tracking pseudorefs CHERRY_PICK_HEAD or
REVERT_HEAD we do not set REF_NO_DEREF. In the unlikely case where those
refs are a symref we would thus end up deleting the symref targets, and
not the symrefs themselves.
Harden the code to use REF_NO_DEREF to fix this.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions