git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git 2.26 rebase.backend change issue
@ 2020-03-28  8:21 Bastian Buchholz
  2020-03-28 14:18 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Bastian Buchholz @ 2020-03-28  8:21 UTC (permalink / raw)
  To: git

Hello,

Just wanted to report that I am running into issues with the git 2.26
`rebase.backend` change.
I am a maintainer on https://github.com/FredrikNoren/ungit which is a
UI for git using a http server / browser architecture.
We are using `git rebase` in non interactive mode (e.g. not specifying
`-i` or `--interactive`) on the server and with git 2.26 this fails
because it seems that it now runs in interactive mode by default. It
tries to an editor on `git rebase --continue`.
Specifying `-c rebase.backend=apply` fixes our issue see
https://github.com/FredrikNoren/ungit/issues/1301

It would be great if the new merge backend would also support a non
interactive mode e.g. by respecting the `-i` or `--interactive`
option,

Thanks and regards
Bastian Buchholz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Git 2.26 rebase.backend change issue
  2020-03-28  8:21 Git 2.26 rebase.backend change issue Bastian Buchholz
@ 2020-03-28 14:18 ` Jeff King
  2020-03-28 14:50   ` Bastian Buchholz
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff King @ 2020-03-28 14:18 UTC (permalink / raw)
  To: Bastian Buchholz; +Cc: git

On Sat, Mar 28, 2020 at 09:21:08AM +0100, Bastian Buchholz wrote:

> Just wanted to report that I am running into issues with the git 2.26
> `rebase.backend` change.
> I am a maintainer on https://github.com/FredrikNoren/ungit which is a
> UI for git using a http server / browser architecture.
> We are using `git rebase` in non interactive mode (e.g. not specifying
> `-i` or `--interactive`) on the server and with git 2.26 this fails
> because it seems that it now runs in interactive mode by default. It
> tries to an editor on `git rebase --continue`.
> Specifying `-c rebase.backend=apply` fixes our issue see
> https://github.com/FredrikNoren/ungit/issues/1301

I don't think --interactive is relevant here; the features triggered by
that option (i.e., the ability to tweak the instruction list) are
different from the notion that rebase would never interact with the user
at all.

There's more discussion of this change in the thread at:

  https://lore.kernel.org/git/20200310174017.GA549010@coredump.intra.peff.net/

The simplest fix is likely to set GIT_EDITOR=: in your environment when
you don't want the user to ever be presented with an editor.

-Peff

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Git 2.26 rebase.backend change issue
  2020-03-28 14:18 ` Jeff King
@ 2020-03-28 14:50   ` Bastian Buchholz
  0 siblings, 0 replies; 3+ messages in thread
From: Bastian Buchholz @ 2020-03-28 14:50 UTC (permalink / raw)
  To: Jeff King; +Cc: git

Yes, the issue we have is the same described in the other thread.
I will try using GIT_EDITOR=: instead.

Thanks!


On Sat, Mar 28, 2020 at 3:18 PM Jeff King <peff@peff.net> wrote:
>
> On Sat, Mar 28, 2020 at 09:21:08AM +0100, Bastian Buchholz wrote:
>
> > Just wanted to report that I am running into issues with the git 2.26
> > `rebase.backend` change.
> > I am a maintainer on https://github.com/FredrikNoren/ungit which is a
> > UI for git using a http server / browser architecture.
> > We are using `git rebase` in non interactive mode (e.g. not specifying
> > `-i` or `--interactive`) on the server and with git 2.26 this fails
> > because it seems that it now runs in interactive mode by default. It
> > tries to an editor on `git rebase --continue`.
> > Specifying `-c rebase.backend=apply` fixes our issue see
> > https://github.com/FredrikNoren/ungit/issues/1301
>
> I don't think --interactive is relevant here; the features triggered by
> that option (i.e., the ability to tweak the instruction list) are
> different from the notion that rebase would never interact with the user
> at all.
>
> There's more discussion of this change in the thread at:
>
>   https://lore.kernel.org/git/20200310174017.GA549010@coredump.intra.peff.net/
>
> The simplest fix is likely to set GIT_EDITOR=: in your environment when
> you don't want the user to ever be presented with an editor.
>
> -Peff

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-28 14:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-28  8:21 Git 2.26 rebase.backend change issue Bastian Buchholz
2020-03-28 14:18 ` Jeff King
2020-03-28 14:50   ` Bastian Buchholz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).