Re: [PATCH 1/3] rebase -i: demonstrate bug with fixup!/squash! commit messages
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Apr 20, 2018, 20:52 UTC
- Message-ID
- <nycvar.QRO.7.76.6.1804202250070.4241@ZVAVAG-6OXH6DA.rhebcr.pbec.zvpebfbsg.pbz>
- In-Reply-To
- <CAPig+cRO2+NJ0-DiuHXA=mWjPnivqH3PiwM9R6OGj2Rr3eLauA@mail.gmail.com>
Hi Eric,
On Fri, 20 Apr 2018, Eric Sunshine wrote:
Show 19 quoted lines
> On Fri, Apr 20, 2018 at 3:29 PM, Eric Sunshine <sunshine@sunshineco.com> wrote: > > On Fri, Apr 20, 2018 at 8:17 AM, Johannes Schindelin > > <johannes.schindelin@gmx.de> wrote: > >> + test_must_fail env FAKE_LINES="1 fixup 2 fixup 4" \ > >> + git rebase -i HEAD~4 && > >> + > >> + : now there is a conflict, and comments in the commit message && > >> + git show HEAD >out && > >> + grep "This is a combination of" out && > >> + > >> + : skip and continue && > >> + git rebase --skip && > > > > I see that this test script doesn't utilize it, but do you want a > > > > test_when_finished "reset_rebase" && > > > > before starting the rebase to clean up in case something before "git > > rebase --skip" fails?
No, because then one of the next test cases fails:
not ok 15 - rebase -i --continue remembers --rerere-autoupdate
;-)
I'll use
test_when_finished "test_might_fail git rebase --abort"
instead, okay? ;-)
Ciao, Dscho