Merge "Remove centos7-autorelease-8c-8g"
[releng/builder.git] / jjb / autorelease / branch-cut.sh
index 90ab655bb02d38d6dd394579a89e82b6b2c5c1f6..342786b8b6a78b24882412a6fbf2952015fb8a25 100644 (file)
@@ -28,6 +28,8 @@ LOG_FILE="$WORKSPACE/archives/branch-cut.log"
 
 set -eu -o pipefail
 
+pip install --user --quiet --upgrade git-review
+
 # Validate inputs
 if [ -z "$RELEASE" ]; then
     echo "ERROR: RELEASE variable must be set to a release name. Eg Carbon"
@@ -65,7 +67,7 @@ if [ "$DRY_RUN" = false ]
 then
     echo "Pushing stable/${RELEASE,,} branches to Gerrit"
     git submodule foreach git push gerrit "stable/${RELEASE,,}"
-    git push gerrit "stable/$RELEASE"
+    git push gerrit "stable/${RELEASE,,}"
 fi
 # --- End create new maintenance branch