X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fgerrit-branch-lock.sh;h=60f28fe2cbcc31ccad1dd91c74148a9028364cc5;hb=refs%2Ftags%2Fv0.77.2;hp=8cfbe4a1af02d08f4a3174ebae34f70f59dfe05c;hpb=8709ee5e00526ce3298b92a85a79a7f058d4216b;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}')