The previous version of git-review is incompatible with the latest
version of git due to renaming flags.
Error:
Errors running git rebase -p -i remotes/gerrit/master
fatal: --preserve-merges was replaced by --rebase-merges
This is fixed in 2.2.0, upgrade to 2.3.1 its more recent.
Ref: https://review.opendev.org/c/opendev/git-review/+/818219
Issue-ID: RELENG-4418
Change-Id: I6057f4a197aa6ae38598b51d3ed62b8b0948db67
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
--- /dev/null
+---
+prelude: >
+ Update openstack images with the auto update image requires more recent
+ version of git-review > 2.2.
+upgrade:
+ - |
+ The previous version of git-review is incompatible with the latest version of
+ git due to renaming flags. This is fixed in git-review 2.2.0.
+issues:
+ - |
+ Error:
+
+ Errors running git rebase -p -i remotes/gerrit/master
+ fatal: --preserve-merges was replaced by --rebase-merges
+
+ Ref: https://review.opendev.org/c/opendev/git-review/+/818219
# shellcheck disable=SC1090
source ~/lf-env.sh
-lf-activate-venv "git-review==1.28"
+lf-activate-venv --python python3 "git-review==2.3.1"
# Query for a pre-existing gerrit review
query_result=$(ssh -p 29418 "$GERRIT_USER@$GERRIT_HOST" gerrit query \