Skip to content

Commit

Permalink
MAINT: commit count if no tag
Browse files Browse the repository at this point in the history
  • Loading branch information
tupui committed May 27, 2021
1 parent 8b5e5c8 commit 44d4350
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def _minimal_ext_cmd(cmd):
out = _minimal_ext_cmd(['git', 'rev-list', 'HEAD', prev_version_tag,
'--count'])
COMMIT_COUNT = out.strip().decode('ascii')
COMMIT_COUNT = '0' if not COMMIT_COUNT else COMMIT_COUNT
except OSError:
GIT_REVISION = "Unknown"
COMMIT_COUNT = "Unknown"
Expand Down

0 comments on commit 44d4350

Please sign in to comment.