diff --git a/progit/hooks/files/progit_hook.py b/progit/hooks/files/progit_hook.py index 48ddc15..b758d3d 100644 --- a/progit/hooks/files/progit_hook.py +++ b/progit/hooks/files/progit_hook.py @@ -101,10 +101,10 @@ def relates_commit(commitid, issueid, project=None): import progit import progit.exceptions - issue = progit.lib.get_issue(progit.SESSION, issueid) - repo = project or get_repo_name() + issue = progit.lib.get_issue(progit.SESSION, repo.id, issueid) + if issue is None or issue.project.name != repo: return