Skip to content

Commit 7307105

Browse files
fix oversight - when git node is None, distance should be 0
1 parent 812b80a commit 7307105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools_scm/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def parse(root, describe_command=DEFAULT_DESCRIBE):
5050
dirty = wd.is_dirty()
5151

5252
if rev_node is None:
53-
return meta('0.0', dirty=dirty)
53+
return meta('0.0', distance=0, dirty=dirty)
5454

5555
out, err, ret = do_ex(describe_command, root)
5656
if ret:

0 commit comments

Comments
 (0)