Fix some bugs

Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
2022-08-04 14:44:58 +02:00
parent f75702439c
commit cb0d8681ae
3 changed files with 20 additions and 4 deletions

View File

@@ -187,9 +187,14 @@ class Detector:
self._tags.remove(tag)
keep_in_mind_commits: list = []
for commit in list(new_tags.values()) + list(new_branches.values()):
if commit not in keep_in_mind_commits:
keep_in_mind_commits.append(commit)
for key, value in new_branches.items():
if not value == self._branches.get(key):
log.debug(f"Keep in mind branch: {key} -> {value}")
keep_in_mind_commits.append(value)
for key, value in new_tags.items():
if not value == self._tags.get(key):
log.debug(f"Keep in mind tag: {key} -> {value}")
keep_in_mind_commits.append(value)
# list commits
executed_count: int = 0