From 9a1f185ad7832e0aa39bb3e6b4c98a4f8a043e81 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 04 2014 11:53:21 +0000 Subject: Fix retrieving a specific request via the global identifier --- diff --git a/progit/lib.py b/progit/lib.py index 94926d7..433a3e7 100644 --- a/progit/lib.py +++ b/progit/lib.py @@ -470,7 +470,11 @@ def get_pull_request( ).filter( subquery.c.project_id == model.PullRequest.project_id ).filter( + subquery.c.request_id == model.PullRequest.id + ).filter( subquery.c.global_id == requestid + ).order_by( + model.PullRequest.id ) if project_id: