Skip to content

Commit

Permalink
Fix bug with maxAnalyzedCommits in analyzer2.
Browse files Browse the repository at this point in the history
  • Loading branch information
hurthwell committed Feb 19, 2019
1 parent 844e004 commit 31ba13f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion persper/analytics/analyzer2.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ def printCommitStatus(status: str):
# note the commit # here only indicates the ordinal of current commit in current analysis session
print("Commit #{0} {1} ({2}): {3}".format(analyzedCommits, commit.hexsha, message, status))

if maxAnalyzedCommits and analyzedCommits > maxAnalyzedCommits:
if maxAnalyzedCommits and analyzedCommits >= maxAnalyzedCommits:
print("Max analyzed commits reached.")
break
if commit.hexsha in self._visitedCommits:
printCommitStatus("Already visited.")
continue
Expand Down

0 comments on commit 31ba13f

Please sign in to comment.