diff --git a/grimoire_elk/enriched/git.py b/grimoire_elk/enriched/git.py index be71f2a0f..95c92807b 100644 --- a/grimoire_elk/enriched/git.py +++ b/grimoire_elk/enriched/git.py @@ -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