Browse Source

tag 无按时间排序方法

walle-web.io 6 years ago
parent
commit
7df64467a1
1 changed files with 1 additions and 2 deletions
  1. 1 2
      walle/service/git/repo.py

+ 1 - 2
walle/service/git/repo.py

@@ -102,8 +102,7 @@ class Repo:
         @param kwargs:
         @return:
         '''
-        tags = PyRepo(self.path).git.tag(sort="taggerdate").split('\n')
-        return tags[::-1]
+        return [str(tag) for tag in PyRepo(self.path).tags][-10:]
 
     def commits(self, branch):
         '''