Skip to content

Commit

Permalink
Retrieve repository directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
janinko committed Oct 20, 2012
1 parent 1ba8f2c commit b66ede9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/kohsuke/github/GitHub.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit b66ede9

Please sign in to comment.