mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 00:28:25 +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 comment
|
||||
import filtering
|
||||
import interval
|
||||
import missing
|
||||
import subprocess
|
||||
|
||||
|
@ -32,7 +33,8 @@ __metric_eloc__ = {"java": 500, "c": 500, "cpp": 500, "h": 300, "hpp": 300, "py"
|
|||
class MetricsLogic:
|
||||
def __init__(self):
|
||||
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():
|
||||
i = codecs.getdecoder("unicode_escape")(i.strip())[0]
|
||||
|
|
Loading…
Reference in a new issue