mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
Fix AttributeError in blame.py script by updating semver library usage
This commit is contained in:
parent
e73a05eb77
commit
4065fc62e6
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ def get_counts_for_file(start_tag, end_tag, authors, fname):
|
|||
|
||||
def get_all_tags_since(start_tag):
|
||||
all_tags = run(['git', 'tag', '--sort=v:refname']).strip().split('\n')
|
||||
filtered_tags = [tag for tag in all_tags if semver.VersionInfo.isvalid(tag[1:]) and tag >= start_tag]
|
||||
filtered_tags = [tag for tag in all_tags if semver.Version.is_valid(tag[1:]) and tag >= start_tag]
|
||||
return [tag for tag in filtered_tags if tag.endswith('.0')]
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue