Merge branch 'pull-22'

This commit is contained in:
Kohsuke Kawaguchi
2013-01-05 17:11:58 -08:00

View File

@@ -250,7 +250,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);
}
/**