|
|
@@ -37,6 +37,7 @@ conf = {
|
|
37
|
37
|
'commit_begin': '',
|
|
38
|
38
|
'commit_end': '',
|
|
39
|
39
|
'linear_linestats': 1,
|
|
|
40
|
+ 'project_name': '',
|
|
40
|
41
|
}
|
|
41
|
42
|
|
|
42
|
43
|
def getpipeoutput(cmds, quiet = False):
|
|
|
@@ -90,7 +91,10 @@ class DataCollector:
|
|
90
|
91
|
# This should be the main function to extract data from the repository.
|
|
91
|
92
|
def collect(self, dir):
|
|
92
|
93
|
self.dir = dir
|
|
93
|
|
- self.projectname = os.path.basename(os.path.abspath(dir))
|
|
|
94
|
+ if len(conf['project_name']) == 0:
|
|
|
95
|
+ self.projectname = os.path.basename(os.path.abspath(dir))
|
|
|
96
|
+ else:
|
|
|
97
|
+ self.projectname = conf['project_name']
|
|
94
|
98
|
|
|
95
|
99
|
##
|
|
96
|
100
|
# Load cacheable data
|