built-in rebase: demonstrate that ORIG_HEAD is not set correctly
commitc2d96293602bf6e8ffa1002cff8cb6faa3854815
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 3 Mar 2019 17:11:54 +0000 (3 09:11 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Mar 2019 04:31:04 +0000 (4 13:31 +0900)
treed0393b6cb89cdaf192cd697ffa435e02c8a6c04e
parenteaf81605b8d17cc15a4a72ffd99d71111b70815b
built-in rebase: demonstrate that ORIG_HEAD is not set correctly

The ORIG_HEAD pseudo ref is supposed to refer to the original,
pre-rebase state after a successful rebase. Let's add a regression test
to prove that this regressed: With GIT_TEST_REBASE_USE_BUILTIN=false,
this test case passes, with GIT_TEST_REBASE_USE_BUILTIN=true (or unset),
it fails.

Reported by Nazri Ramliy.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3400-rebase.sh