File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,14 +62,14 @@ def get_tag(): # type: () -> Optional[str]
62
62
63
63
64
64
def get_sha (name = 'HEAD' ): # type: (str) -> Optional[str]
65
- sha = _exec ("git rev-list -n 1 {name}" .format (name = name ))
65
+ sha = _exec ("git rev-list -n 1 \" {name}\" " .format (name = name ))
66
66
if sha :
67
67
return sha [0 ]
68
68
return None
69
69
70
70
71
71
def get_latest_file_commit (path ): # type: (str) -> Optional[str]
72
- sha = _exec ("git log -n 1 --pretty=format:%H -- {path}" .format (path = path ))
72
+ sha = _exec ("git log -n 1 --pretty=format:%H -- \" {path}\" " .format (path = path ))
73
73
if sha :
74
74
return sha [0 ]
75
75
return None
@@ -83,7 +83,7 @@ def is_dirty(): # type: () -> bool
83
83
84
84
85
85
def count_since (name ): # type: (str) -> Optional[int]
86
- res = _exec ("git rev-list --count HEAD ^{name}" .format (name = name ))
86
+ res = _exec ("git rev-list --count HEAD \" ^{name}\" " .format (name = name ))
87
87
if res :
88
88
return int (res [0 ])
89
89
return None
You can’t perform that action at this time.
0 commit comments