mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 08:21:23 +00:00
renameTo wasn't updating some fields
This commit is contained in:
@@ -43,11 +43,15 @@ public abstract class GHPerson {
|
||||
*/
|
||||
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);
|
||||
GHRepository r = fetchRepository(name);
|
||||
repositories.put(name,r);
|
||||
return r;
|
||||
}
|
||||
|
||||
protected GHRepository fetchRepository(String name) throws IOException {
|
||||
return root.retrieve("/repos/show/" + login + '/' + name, JsonRepository.class).wrap(root);
|
||||
}
|
||||
|
||||
public GHRepository getRepository(String name) throws IOException {
|
||||
return getRepositories().get(name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user