emilianbold closed pull request #524: [NETBEANS-592] Fixes Git History regression URL: https://github.com/apache/incubator-netbeans/pull/524
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/libs.git/src/org/netbeans/libs/git/jgit/commands/LogCommand.java b/libs.git/src/org/netbeans/libs/git/jgit/commands/LogCommand.java index c874fe9f7..a21c4f123 100644 --- a/libs.git/src/org/netbeans/libs/git/jgit/commands/LogCommand.java +++ b/libs.git/src/org/netbeans/libs/git/jgit/commands/LogCommand.java @@ -152,7 +152,7 @@ protected void run () throws GitException { walk.sort(RevSort.COMMIT_TIME_DESC, true); int remaining = criteria.getLimit(); Map<String, GitBranch> extraBranches = null; - while (remaining-- > 0) { + while (remaining != 0) { if (monitor.isCanceled()) { break; } @@ -182,6 +182,7 @@ protected void run () throws GitException { } } } + remaining--; } } catch (MissingObjectException ex) { throw new GitException.MissingObjectException(ex.getObjectId().toString(), GitObjectType.COMMIT); ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists