Skip to content

Commit 59b4a29

Browse files
authored
Merge pull request scipy#14146 from tupui/commit_count
MAINT: commit count if no tag
2 parents 69d9d06 + 44d4350 commit 59b4a29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def _minimal_ext_cmd(cmd):
9393
out = _minimal_ext_cmd(['git', 'rev-list', 'HEAD', prev_version_tag,
9494
'--count'])
9595
COMMIT_COUNT = out.strip().decode('ascii')
96+
COMMIT_COUNT = '0' if not COMMIT_COUNT else COMMIT_COUNT
9697
except OSError:
9798
GIT_REVISION = "Unknown"
9899
COMMIT_COUNT = "Unknown"

0 commit comments

Comments
 (0)