From: Johannes Schindelin Date: Mon, 6 Aug 2018 09:52:52 +0000 (-0700) Subject: t3430: demonstrate what -r, --autosquash & --exec should do X-Git-Tag: v2.19.0-rc0~32^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0880f77abcbd2dbc948917e995680171eff28b0;p=thirdparty%2Fgit.git t3430: demonstrate what -r, --autosquash & --exec should do The --exec option's implementation is not really well-prepared for --rebase-merges. Demonstrate this. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/t/t3430-rebase-merges.sh b/t/t3430-rebase-merges.sh index 9e62297274..0bf5eaa376 100755 --- a/t/t3430-rebase-merges.sh +++ b/t/t3430-rebase-merges.sh @@ -363,4 +363,21 @@ test_expect_success 'octopus merges' ' EOF ' +test_expect_failure 'with --autosquash and --exec' ' + git checkout -b with-exec H && + echo Booh >B.t && + test_tick && + git commit --fixup B B.t && + write_script show.sh <<-\EOF && + subject="$(git show -s --format=%s HEAD)" + content="$(git diff HEAD^! | tail -n 1)" + echo "$subject: $content" + EOF + test_tick && + git rebase -ir --autosquash --exec ./show.sh A >actual && + grep "B: +Booh" actual && + grep "E: +Booh" actual && + grep "G: +G" actual +' + test_done