Skip to content

Commit

Permalink
reset the counter after processed commits in branch.
Browse files Browse the repository at this point in the history
Signed-off-by: Chenqi Shan <[email protected]>
  • Loading branch information
shanchenqi committed May 29, 2022
1 parent badd7d5 commit 698ac5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grimoire_elk/enriched/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,9 @@ def add_commit_branches(self, git_repo, enrich_backend):

if commit_count:
self.__process_commits_in_branch(enrich_backend, git_repo.uri, branch_name, to_process)

# reset the counter
to_process = []
commit_count = 0
except Exception as e:
logger.error("[git] Skip adding branch info for repo {} due to {}".format(git_repo.uri, e))
return
Expand Down

0 comments on commit 698ac5a

Please sign in to comment.