Fixed issue #286

List commit API (https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository) already populates short info, and so populate() call could be excessive.

 It's possible that the short info is always available and therefore there's never a need to call populate(), but that assumption is hard to test, so I'm leaving that in
This commit is contained in:
Kohsuke Kawaguchi
2016-08-05 21:11:00 -07:00
parent a9fb4546e1
commit 63f500ad7f

View File

@@ -179,7 +179,8 @@ public class GHCommit {
public ShortInfo getCommitShortInfo() throws IOException {
populate();
if (commit==null)
populate();
return commit;
}