mirror of
https://github.com/ejwa/gitinspector.git
synced 2025-01-03 11:22:15 +01:00
The metrics module was not taking the --until flag into consideration.
This commit is contained in:
parent
d5fc9057fb
commit
69af5a797b
1 changed files with 3 additions and 1 deletions
|
@ -23,6 +23,7 @@ from changes import FileDiff
|
||||||
import codecs
|
import codecs
|
||||||
import comment
|
import comment
|
||||||
import filtering
|
import filtering
|
||||||
|
import interval
|
||||||
import missing
|
import missing
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
@ -32,7 +33,8 @@ __metric_eloc__ = {"java": 500, "c": 500, "cpp": 500, "h": 300, "hpp": 300, "py"
|
||||||
class MetricsLogic:
|
class MetricsLogic:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.eloc = {}
|
self.eloc = {}
|
||||||
ls_tree_r = subprocess.Popen("git ls-tree --name-only -r HEAD", shell=True, bufsize=1, stdout=subprocess.PIPE).stdout
|
ls_tree_r = subprocess.Popen("git ls-tree --name-only -r " + interval.get_ref(), shell=True, bufsize=1,
|
||||||
|
stdout=subprocess.PIPE).stdout
|
||||||
|
|
||||||
for i in ls_tree_r.readlines():
|
for i in ls_tree_r.readlines():
|
||||||
i = codecs.getdecoder("unicode_escape")(i.strip())[0]
|
i = codecs.getdecoder("unicode_escape")(i.strip())[0]
|
||||||
|
|
Loading…
Reference in a new issue