Message ID | pull.894.git.git.1603286675709.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 1234e8297f3bfd9101259e5557f1e85cea755e86 |
Headers | show |
Series | sequencer: remove duplicate rollback_lock_file() call | expand |
Hi Elijah, On Wed, Oct 21, 2020 at 01:24:35PM +0000, Elijah Newren via GitGitGadget wrote: > diff --git a/sequencer.c b/sequencer.c > index 00acb12496..baff51035e 100644 > --- a/sequencer.c > +++ b/sequencer.c > @@ -3689,7 +3689,6 @@ static int do_merge(struct repository *r, > NULL, 0); > rollback_lock_file(&lock); > > - rollback_lock_file(&lock); Looks obviously good to me, thanks. Reviewed-by: Taylor Blau <me@ttaylorr.com> Thanks, Taylor
Taylor Blau <me@ttaylorr.com> writes: > Hi Elijah, > > On Wed, Oct 21, 2020 at 01:24:35PM +0000, Elijah Newren via GitGitGadget wrote: >> diff --git a/sequencer.c b/sequencer.c >> index 00acb12496..baff51035e 100644 >> --- a/sequencer.c >> +++ b/sequencer.c >> @@ -3689,7 +3689,6 @@ static int do_merge(struct repository *r, >> NULL, 0); >> rollback_lock_file(&lock); >> >> - rollback_lock_file(&lock); > > Looks obviously good to me, thanks. > > Reviewed-by: Taylor Blau <me@ttaylorr.com> > > Thanks, > Taylor Thanks, both. That's an embarrassing one.
Hi Elijah, On Wed, 21 Oct 2020, Elijah Newren via GitGitGadget wrote: > From: Elijah Newren <newren@gmail.com> > > Commit 2b6ad0f4bc ("rebase --rebase-merges: add support for octopus > merges", 2017-12-21) introduced a case where rollback_lock_file() was > unconditionally called twice in a row with no intervening commands. > Remove the duplicate. Thank you for cleaning up after me. I _know_ that this slipped in a couple times during my rebasing, and still, this last time it slipped through. ACK, Dscho
diff --git a/sequencer.c b/sequencer.c index 00acb12496..baff51035e 100644 --- a/sequencer.c +++ b/sequencer.c @@ -3689,7 +3689,6 @@ static int do_merge(struct repository *r, NULL, 0); rollback_lock_file(&lock); - rollback_lock_file(&lock); ret = run_command(&cmd); /* force re-reading of the cache */