diff options
author | Oliver Poignant <oliver@poignant.se> | 2016-11-29 21:15:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-29 21:15:03 +0100 |
commit | a4d94b4acf1ef43de3b452e78e0208fd7222a01b (patch) | |
tree | f589b5cd57db2b1fe1702fd5039dd07032ef6db3 /gitautodeploy/parsers/common.py | |
parent | 749ce13ae6e9cecf69997d36228f2cab9a2eb8ec (diff) | |
parent | 482781f0ffabf3ff77f8b30e73bec8103251ad86 (diff) | |
download | Git-Auto-Deploy-a4d94b4acf1ef43de3b452e78e0208fd7222a01b.zip Git-Auto-Deploy-a4d94b4acf1ef43de3b452e78e0208fd7222a01b.tar.gz Git-Auto-Deploy-a4d94b4acf1ef43de3b452e78e0208fd7222a01b.tar.bz2 |
Merge pull request #152 from olipo186/hwhesselink-multiple_gh_repos
Hwhesselink multiple gh repos
Diffstat (limited to 'gitautodeploy/parsers/common.py')
-rw-r--r-- | gitautodeploy/parsers/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitautodeploy/parsers/common.py b/gitautodeploy/parsers/common.py index 42cbbdd..0a1a799 100644 --- a/gitautodeploy/parsers/common.py +++ b/gitautodeploy/parsers/common.py @@ -16,9 +16,9 @@ class WebhookRequestParser(object): for repo_config in self._config['repositories']: if repo_config in configs: continue - if repo_config['url'] == url: + if repo_config.get('match-url', repo_config.get('url')) == url: configs.append(repo_config) elif 'url_without_usernme' in repo_config and repo_config['url_without_usernme'] == url: configs.append(repo_config) - return configs
\ No newline at end of file + return configs |