Skip to content

Commit 6e40668

Browse files
committed
Fix the node for Git to be prefixed with 'g' also in the fallback
The 'g' prefix is a 'git describe' specific thing, which is that we try to use first. In the fallback 'git rev-parse' is used to we need to add the 'g' manually.
1 parent a3d8d09 commit 6e40668

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
@@ -96,7 +96,7 @@ def parse(root, describe_command=DEFAULT_DESCRIBE, pre_parse=warn_on_shallow):
9696
return meta(
9797
'0.0',
9898
distance=wd.count_all_nodes(),
99-
node=rev_node,
99+
node='g' + rev_node,
100100
dirty=dirty,
101101
)
102102

0 commit comments

Comments
 (0)