[all] git-review broken by git version 2.34.0
Hello, I recently upgraded to the latest git release 2.34.0 and noticed it breaks git-review (output below is with -v): Errors running git rebase -p -i remotes/gerrit/stable/xena fatal: --preserve-merges was replaced by --rebase-merges I submitted a patch [1], but since it would break compatibility with git versions older than 2.18 that don't support the --rebase-merges (-r) option, it may need to be refined before being merged. Cheers, Pierre [1] https://review.opendev.org/c/opendev/git-review/+/818219
On Wed, Nov 17, 2021, at 3:07 AM, Pierre Riteau wrote:
Hello,
I recently upgraded to the latest git release 2.34.0 and noticed it breaks git-review (output below is with -v):
Errors running git rebase -p -i remotes/gerrit/stable/xena fatal: --preserve-merges was replaced by --rebase-merges
I submitted a patch [1], but since it would break compatibility with git versions older than 2.18 that don't support the --rebase-merges (-r) option, it may need to be refined before being merged.
Ubuntu Bionic and CentOS7 both have older git versions than 2.18. If it isn't terrible to continue to support older git that may be a good idea, but we can also suggest those installations pin their git-review to the current version instead. As a side note the man page for git rebase says that --preserve-merges and --interactive are incompatible options and yet they are both set in the failed command above. I wonder what sort of behavior we were getting out of git when this "worked".
Cheers, Pierre
[1] https://review.opendev.org/c/opendev/git-review/+/818219
On Wed, Nov 17, 2021, at 6:48 AM, Clark Boylan wrote:
On Wed, Nov 17, 2021, at 3:07 AM, Pierre Riteau wrote:
Hello,
I recently upgraded to the latest git release 2.34.0 and noticed it breaks git-review (output below is with -v):
Errors running git rebase -p -i remotes/gerrit/stable/xena fatal: --preserve-merges was replaced by --rebase-merges
I submitted a patch [1], but since it would break compatibility with git versions older than 2.18 that don't support the --rebase-merges (-r) option, it may need to be refined before being merged.
Ubuntu Bionic and CentOS7 both have older git versions than 2.18. If it isn't terrible to continue to support older git that may be a good idea, but we can also suggest those installations pin their git-review to the current version instead.
I pushed a follwup, https://review.opendev.org/c/opendev/git-review/+/818238, that can be squashed into the parent if this works in testing. It attempts to check the version and set the flag appropriately. Clark
participants (2)
-
Clark Boylan
-
Pierre Riteau