Skip to content

Commit

Permalink
fixed vaab#98
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Rychkov committed Mar 9, 2018
1 parent e559343 commit 0b3822a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gitchangelog/gitchangelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -1181,10 +1181,10 @@ def tags(self, contains=None):
No firm reason for that, and it could change in future version.
"""
kwargs = {'merged': True}
if contains:
tags = self.git.tag(contains=contains).split("\n")
else:
tags = self.git.tag().split("\n")
kwargs['contains'] = contains
tags = self.git.tag(**kwargs).split("\n")
## Should we use new version name sorting ? refering to :
## ``git tags --sort -v:refname`` in git version >2.0.
## Sorting and reversing with command line is not available on
Expand Down

0 comments on commit 0b3822a

Please sign in to comment.