This commit is contained in:
Kohsuke Kawaguchi
2010-12-12 21:17:08 -08:00
parent a282cd3f74
commit bbf045dbf1
2 changed files with 10 additions and 6 deletions

View File

@@ -44,6 +44,7 @@ public abstract class GHPerson {
* Fetches the repository of the given name from GitHub, and return it.
*/
protected GHRepository refreshRepository(String name) throws IOException {
if (repositories==null) getRepositories(); // fetch the base first
GHRepository r = root.retrieve("/repos/show/" + login + '/' + name, JsonRepository.class).wrap(root);
repositories.put(name,r);
return r;