Retrieve repository directly.

This commit is contained in:
Honza Brázdil
2012-10-20 23:24:56 +02:00
parent 1ba8f2ccbf
commit b66ede98c7

View File

@@ -227,7 +227,7 @@ public class GitHub {
*/
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);
}
/**