X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fgerrit-branch-lock.sh;h=88f5a22f160edf4050706bb61603f6aaa97ab49b;hb=a5fa8a32ab2f856fecc7505fdfd7a8e12df2c402;hp=60f28fe2cbcc31ccad1dd91c74148a9028364cc5;hpb=3f9ebb9b278156fb06ce951e7ab4fbb81e6d40f0;p=releng%2Fglobal-jjb.git diff --git a/shell/gerrit-branch-lock.sh b/shell/gerrit-branch-lock.sh index 60f28fe2..88f5a22f 100644 --- a/shell/gerrit-branch-lock.sh +++ b/shell/gerrit-branch-lock.sh @@ -46,14 +46,19 @@ mode=$(echo "$GERRIT_EVENT_COMMENT_TEXT" | grep branch | awk '{print $1}') case $mode in lock) echo "Locking branch: $GERRIT_BRANCH" - git config -f project.config "access.refs/heads/${GERRIT_BRANCH}.exclusiveGroupPermissions" "submit" - git config -f project.config "access.refs/heads/${GERRIT_BRANCH}.submit" "block group Registered Users" + git config -f project.config \ + "access.refs/heads/${GERRIT_BRANCH}.exclusiveGroupPermissions" \ + "submit" + git config -f project.config \ + "access.refs/heads/${GERRIT_BRANCH}.submit" \ + "block group Registered Users" git commit -asm "Lock branch $GERRIT_BRANCH" ;; unlock) echo "Unlocking branch: $GERRIT_BRANCH" - git config -f project.config --remove-section "access.refs/heads/${GERRIT_BRANCH}" || true + git config -f project.config --remove-section \ + "access.refs/heads/${GERRIT_BRANCH}" || true git commit -asm "Unlock branch $GERRIT_BRANCH" ;;