aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-09-06 23:29:03 +0200
committerMichał Górny <mgorny@gentoo.org>2019-04-09 13:05:55 +0200
commitb304d64403492e3f2a031776286607c8d9b211d5 (patch)
tree508a7cb6ea152e23918a2dfb401f6f2738011caa
parentpostrecv-bugs: Limit operation to specified branches (diff)
downloadgithooks-b304d64403492e3f2a031776286607c8d9b211d5.tar.gz
githooks-b304d64403492e3f2a031776286607c8d9b211d5.tar.bz2
githooks-b304d64403492e3f2a031776286607c8d9b211d5.zip
postrecv-bugs: Use - instead of _ in config key
-rwxr-xr-xlocal/postrecv-bugs4
1 files changed, 2 insertions, 2 deletions
diff --git a/local/postrecv-bugs b/local/postrecv-bugs
index ece65b0..705078c 100755
--- a/local/postrecv-bugs
+++ b/local/postrecv-bugs
@@ -10,10 +10,10 @@ export TZ=UTC
shopt -o -s noglob
-ALLOWED_BRANCHES=$(git config --get gentoo.bugs.allowed_branches)
+ALLOWED_BRANCHES=$(git config --get gentoo.bugs.allowed-branches)
while read -r oldrev newrev refname; do
- # operate only on branches in gentoo.bugs.allowed_branches
+ # operate only on branches in gentoo.bugs.allowed-branches
# (or 'master' if unset)
allowed=0
for allowed_branch in ${ALLOWED_BRANCHES:-master}; do