Add transportpce models verify jobs
[releng/builder.git] / jjb / autorelease / branch-cut.sh
index 0c24b27c94f342d62a78328fb4dd521c2336952d..c22f794c1fcb9ec465fdb870e3e41c8acddc75fb 100644 (file)
@@ -29,9 +29,9 @@ LOG_FILE="$WORKSPACE/archives/branch-cut.log"
 set -eu -o pipefail
 
 # shellcheck disable=SC1090
-source ~/lf-env.sh
+. ~/lf-env.sh
 
-lf-activate-venv "git-review==1.28"
+lf-activate-venv --python python3 "git-review==2.3.1"
 
 # Validate inputs
 if [ -z "$RELEASE" ]; then
@@ -39,6 +39,9 @@ if [ -z "$RELEASE" ]; then
     exit 1
 fi
 
+# Workaround for git-review failing to copy the commit-msg hook to submodules
+git config core.hooksPath "$(git rev-parse --show-toplevel)/.git/hooks"
+
 # Setup Gerrit remote to ensure Change-Id gets set on commit.
 git config --global --add gitreview.username "jenkins-$SILO"
 git remote -v