From b66ede98c7dc2e45e56591f935da485474d592c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Br=C3=A1zdil?= Date: Sat, 20 Oct 2012 23:24:56 +0200 Subject: [PATCH] Retrieve repository directly. --- src/main/java/org/kohsuke/github/GitHub.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/kohsuke/github/GitHub.java b/src/main/java/org/kohsuke/github/GitHub.java index 9e5e970ded..d9a84d6312 100644 --- a/src/main/java/org/kohsuke/github/GitHub.java +++ b/src/main/java/org/kohsuke/github/GitHub.java @@ -227,7 +227,7 @@ public GHOrganization getOrganization(String name) throws IOException { */ public GHRepository getRepository(String name) throws IOException { String[] tokens = name.split("/"); - return getUser(tokens[0]).getRepository(tokens[1]); + return retrieve().to("/repos/" + tokens[0] + '/' + tokens[1], GHRepository.class).wrap(this); } /**