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]>

Date:      Sun May 29 11:00:34 2022 +0800
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

Changes to be committed:
   modified:   grimoire_elk/enriched/git.py
  • Loading branch information
shanchenqi committed May 29, 2022
1 parent badd7d5 commit 2cc7bc3
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 2cc7bc3

Please sign in to comment.