We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91ed065 commit 991e829Copy full SHA for 991e829
commitizen/git.py
@@ -5,7 +5,7 @@
5
from tempfile import NamedTemporaryFile
6
from typing import List, Optional
7
8
-from commitizen import cmd
+from commitizen import cmd, out
9
from commitizen.exceptions import GitCommandError
10
11
UNIX_EOL = "\n"
@@ -150,8 +150,13 @@ def get_tags(dateformat: str = "%Y-%m-%d") -> List[GitTag]:
150
f'%(object)"'
151
)
152
c = cmd.run(f"git tag --format={formatter} --sort=-creatordate")
153
+ if c.return_code != 0:
154
+ raise GitCommandError(c.err)
155
- if c.err or not c.out:
156
+ if c.err:
157
+ out.warn(f"Attempting to proceed after: {c.err}")
158
+
159
+ if not c.out:
160
return []
161
162
git_tags = [
0 commit comments