Skip to content

Commit

Permalink
Merge branch 'git-branches-fixed' of 'https://github.com/jjmerchante/…
Browse files Browse the repository at this point in the history
  • Loading branch information
sduenas authored Jul 31, 2024
2 parents d7e45e5 + 1fd5541 commit e0f728b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grimoire_elk/enriched/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -1027,12 +1027,13 @@ def add_commit_branches(self, git_repo, enrich_backend):
:param git_repo: GitRepository object
:param enrich_backend: the enrich backend
"""
to_process = []
for hash, refname in git_repo._discover_refs(remote=True):

if not refname.startswith('refs/heads/'):
continue

# reset the counter
to_process = []
commit_count = 0
branch_name = refname.replace('refs/heads/', '')

Expand Down
8 changes: 8 additions & 0 deletions releases/unreleased/git-branches-study-fixed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Git branches study fixed
category: fixed
author: Jose Javier Merchante <[email protected]>
issue: null
notes: >
Git branches study was assigning branches to wrong
commits.

0 comments on commit e0f728b

Please sign in to comment.