Skip to content

Commit

Permalink
changed git tag list to properly return list in descending order of d…
Browse files Browse the repository at this point in the history
…ate.
  • Loading branch information
gregorynicholas committed Mar 16, 2013
1 parent b74369d commit 20c1eff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions keybump.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ def get_git_tag():
return tag

def get_git_tags():
tags, err = Popen(['git', 'tag', '-l'], stdout=PIPE).communicate()
return tags.splitlines()
cmd = "git for-each-ref --format '%(refname)' refs/tags".split(' ')
tags, err = Popen(cmd, stdout=PIPE).communicate()
tags = tags.splitlines()
return [t.replace('refs/tags/', '') for t in tags]

def has_git_tag(tags):
'''
Expand Down

0 comments on commit 20c1eff

Please sign in to comment.