mirror of
https://github.com/ejwa/gitinspector.git
synced 2025-03-18 22:38:05 +01:00
The metrics module was failing on paths with spaces (Fixes issue 47).
This commit is contained in:
parent
e3b4857eb6
commit
dd50994f2c
1 changed files with 2 additions and 2 deletions
|
@ -54,8 +54,8 @@ class MetricsLogic:
|
||||||
i = i.decode("utf-8", "replace").strip("\"").strip("'").strip()
|
i = i.decode("utf-8", "replace").strip("\"").strip("'").strip()
|
||||||
|
|
||||||
if FileDiff.is_valid_extension(i) and not filtering.set_filtered(FileDiff.get_filename(i)):
|
if FileDiff.is_valid_extension(i) and not filtering.set_filtered(FileDiff.get_filename(i)):
|
||||||
file_r = subprocess.Popen("git show " + interval.get_ref() + ":" + i.strip(), shell=True, bufsize=1,
|
file_r = subprocess.Popen("git show " + interval.get_ref() + ":\"{0}\"".format(i.strip()),
|
||||||
stdout=subprocess.PIPE).stdout.readlines()
|
shell=True, bufsize=1, stdout=subprocess.PIPE).stdout.readlines()
|
||||||
|
|
||||||
extension = FileDiff.get_extension(i)
|
extension = FileDiff.get_extension(i)
|
||||||
lines = MetricsLogic.get_eloc(file_r, extension)
|
lines = MetricsLogic.get_eloc(file_r, extension)
|
||||||
|
|
Loading…
Add table
Reference in a new issue