From ac560351d64285859f8836cff57a0b75c5075cc4 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 03 2014 10:32:44 +0000 Subject: Retrieve the repo object from the database to access its identifier Relates to #43 --- diff --git a/progit/hooks/files/progit_hook.py b/progit/hooks/files/progit_hook.py index 12938cc..2bdbed9 100644 --- a/progit/hooks/files/progit_hook.py +++ b/progit/hooks/files/progit_hook.py @@ -108,6 +108,7 @@ def relates_commit(commitid, issueid, project=None): username = get_username() print 'username:', username + repo = progit.lib.get_project(progit.SESSION, repo, user=username) issue = progit.lib.get_issue(progit.SESSION, repo.id, issueid) if issue is None or issue.project.name != repo: