webhooks/gitlab: Use branches.find to filter Git notifications.

This commit is contained in:
Eeshan Garg 2017-04-24 21:51:34 -02:30 committed by Tim Abbott
parent 8900e99ae5
commit 46b6475066
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ def get_event(request, payload, branches):
elif event == 'Push Hook':
if branches is not None:
branch = get_branch_name(payload)
if branch not in branches.split(','):
if branches.find(branch) == -1:
return None
if event in list(EVENT_FUNCTION_MAPPER.keys()):