Skip to content

Commit 49d48b1

Browse files
authored
Improve luthier's git version extraction on macOS (#136)
1 parent df9c063 commit 49d48b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/luthier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
def gitVersion():
1414
gitVersionString = sp.check_output(['git', '--version'])
15-
gitVersion = gitVersionString.decode('utf-8').strip().split()[-1]
15+
gitVersion = gitVersionString.decode('utf-8').strip().split()[2]
1616
components = gitVersion.split('.')
1717
return { 'major': int(components[0]), 'minor': int(components[1]), 'patch': int(components[2]) }
1818

0 commit comments

Comments
 (0)