]> git.ipfire.org Git - thirdparty/git.git/commit
t3404: add failing branch symref test
authorSon Luong Ngoc <sluongng@gmail.com>
Thu, 28 May 2026 05:42:00 +0000 (05:42 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 May 2026 20:42:28 +0000 (05:42 +0900)
commit7be2099ee9ae9d81618dcce65b3aa302a87078d2
treea0710435ec72957f873d5476247466d2e429a0b8
parentc69baaf57ba26cf117c2b6793802877f19738b0d
t3404: add failing branch symref test

rebase --update-refs queues local branch decorations by their literal
refnames. When a branch such as refs/heads/main is a symbolic ref to
the current branch, the normal rebase path first updates the current
branch and the queued symref update later tries to update the same
referent with the old value it recorded before the rebase.

Add a known-breakage test that exercises this case so that the fix can
flip it to test_expect_success. The expected behavior is that the branch
symref keeps pointing at the rebased current branch.

Signed-off-by: Son Luong Ngoc <sluongng@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3404-rebase-interactive.sh