Feat: Upgrade git-review to 2.3.1 99/70599/3 v0.81.0
authorAnil Belur <abelur@linuxfoundation.org>
Fri, 9 Sep 2022 03:35:05 +0000 (13:35 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Mon, 12 Sep 2022 05:59:35 +0000 (15:59 +1000)
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>
releasenotes/notes/upgrade-git-review-2.3.1-b3cc401a6c8ae58a.yaml [new file with mode: 0644]
shell/gerrit-push-patch.sh

diff --git a/releasenotes/notes/upgrade-git-review-2.3.1-b3cc401a6c8ae58a.yaml b/releasenotes/notes/upgrade-git-review-2.3.1-b3cc401a6c8ae58a.yaml
new file mode 100644 (file)
index 0000000..0c38563
--- /dev/null
@@ -0,0 +1,16 @@
+---
+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
index ab9d57b..a1d67e6 100644 (file)
@@ -47,7 +47,7 @@ echo -e "INFO: Staged for commit:\n$staged_commits\n"
 # 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 \