X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fgerrit-branch-lock.sh;h=60f28fe2cbcc31ccad1dd91c74148a9028364cc5;hb=568b22ef45e66def2e9b3361b3d438fd5b32fd97;hp=8cfbe4a1af02d08f4a3174ebae34f70f59dfe05c;hpb=dbd05cd4100a27a545cc2c7f0388018449d982c3;p=releng%2Fglobal-jjb.git diff --git a/shell/gerrit-branch-lock.sh b/shell/gerrit-branch-lock.sh index 8cfbe4a1..60f28fe2 100644 --- a/shell/gerrit-branch-lock.sh +++ b/shell/gerrit-branch-lock.sh @@ -39,6 +39,7 @@ install_gerrit_hook # Groups must be mapped in the groups file before they can be used if ! grep 'Registered Users'; then echo -e "global:Registered-Users\tRegistered Users" >> groups + git add groups fi mode=$(echo "$GERRIT_EVENT_COMMENT_TEXT" | grep branch | awk '{print $1}')