Skip to content

Commit

Permalink
reset the counter after processed commits in branch
Browse files Browse the repository at this point in the history
    Author:    Chenqi Shan <[email protected]>
    Date:      Tue May 29 10:10:34 2022 +0200
    On branch master
    Your branch is up to date with 'origin/master'.

    Changes not staged for commit:
      (use "git add <file>..." to update what will be committed)
      (use "git restore <file>..." to discard changes in working directory)
            modified:   grimoire_elk/enriched/git.py

Signed-off-by: Chenqi Shan <[email protected]>
  • Loading branch information
shanchenqi committed May 29, 2022
1 parent b66c00b commit 7fb3d20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions grimoire_elk/enriched/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +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))
Expand Down

0 comments on commit 7fb3d20

Please sign in to comment.