Skip to content

Commit

Permalink
Avoid outputting bad version strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
anjackson committed Nov 16, 2023
1 parent a5f7124 commit 3e1a2a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

def get_version():
try:
return subprocess.check_output(['git', 'describe', '--tags', '--always']).strip().decode("utf-8")
return subprocess.check_output(['git', 'describe', '--tags', '--exact-match']).strip().decode("utf-8")
except:
return "?.?.?"
return "0.0.0dev0"

setup(
name='crawldb',
Expand Down

0 comments on commit 3e1a2a0

Please sign in to comment.