--- /dev/null
+---
+fixes:
+ - |
+ Pin git review to 1.78
+
+ The latest version of module trys to look for git hook recursively within
+ the submodules.
+
+
+ Error:
+
+ .. code-block:: bash
+
+ Running: git submodule foreach cp -p .git/hooks/commit-msg "$(git rev-parse --git-dir)/hooks/"
+ Problems encountered installing commit-msg hook
+ The following command failed with exit code 128
+ "git submodule foreach cp -p .git/hooks/commit-msg "$(git rev-parse --git-dir)/hooks/""
+ -----------------------
+ Entering 'global-jjb'
+ cannot stat '.git/hooks/commit-msg': Not a directory
+ fatal: run_command returned non-zero status for global-jjb
+
+
+ Remove workaround that has been resolved in v1.28 and use lf-activate-venv
+ to install git-review
IFS=" " read -r -a PATCHES <<< "$(echo "$GERRIT_EVENT_COMMENT_TEXT" | grep -E '(recheck:|reverify:)' | awk -F: '{print $2}')"
-# Workaround for git-review bug in v1.24
-# https://storyboard.openstack.org/#!/story/2001081
-set +u # Allow unbound variables for virtualenv
-virtualenv --quiet "/tmp/v/git-review"
-# shellcheck source=/tmp/v/git-review/bin/activate disable=SC1091
-source "/tmp/v/git-review/bin/activate"
-pip install --quiet --upgrade "pip==9.0.3" setuptools
-pip install --quiet --upgrade git-review
-set -u
-# End git-review workaround
+# shellcheck disable=SC1090
+source ~/lf-env.sh
+
+lf-activate-venv "git-review==1.28"
+
projects=()
for patch in "${PATCHES[@]}"; do
# shellcheck disable=SC1090
source ~/lf-env.sh
-lf-activate-venv "git-review>=1.28"
+lf-activate-venv "git-review==1.28"
# Query for a pre-existing gerrit review
query_result=$(ssh -p 29418 "$GERRIT_USER@$GERRIT_HOST" gerrit query \