summaryrefslogtreecommitdiff
path: root/t/t4013/diff.diff_--stat_initial..side
diff options
context:
space:
mode:
authorAbhinav Gupta <mail@abhinavg.net>2026-05-10 15:41:11 -0700
committerJunio C Hamano <gitster@pobox.com>2026-05-11 09:00:44 +0900
commit106b6885c7bbaafc863dff0bb5361f906545de5c (patch)
treee25d82af9544183803c8bedf7b7076ba01f053ef /t/t4013/diff.diff_--stat_initial..side
parent67ad42147a7acc2af6074753ebd03d904476118f (diff)
rebase: ignore non-branch update-refs
The following Git configuration breaks git rebase --update-refs: [rebase] instructionFormat = %s%d The '%d' format requests all available decorations for a commit, filling the global decoration table with all of them, which --update-refs then uses to populate 'update-ref' instructions in the rebase todo list. Specifically, this results in the following instruction: update-ref HEAD The todo parser then rejects the instruction: error: update-ref requires a fully qualified refname e.g. refs/heads/HEAD error: invalid line 3: update-ref HEAD To fix, ignore decorations that are not local branches when scanning through the table. This matches the documented contract: it moves branch refs under refs/heads/ and leaves display-only decorations (HEAD, tags, etc.) alone. Verification: A regression test that fails without this fix is included. Signed-off-by: Abhinav Gupta <mail@abhinavg.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_--stat_initial..side')
0 files changed, 0 insertions, 0 deletions