Skip to content

Commit b808b01

Browse files
authored
Merge pull request #5 from bmiklautz/notags
fix: python error if no tag is found
2 parents bc7e350 + fbcb590 commit b808b01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools_git_versioning.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def version_from_git(template=DEFAULT_TEMPLATE,
152152
else:
153153
return version_callback
154154

155-
if not os.path.exists(version_file):
155+
if version_file is None or not os.path.exists(version_file):
156156
return starting_version
157157
else:
158158
from_file = True

0 commit comments

Comments
 (0)