Просмотр исходного кода

Remove extra 'git log' call.

No idea why this was used in the first place, apart from performance hit, it
had no effect.
Heikki Hokkanen 15 лет назад
Родитель
Сommit
cc0f94fd1a
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      gitstats

+ 1
- 1
gitstats Просмотреть файл

161
 		DataCollector.collect(self, dir)
161
 		DataCollector.collect(self, dir)
162
 
162
 
163
 		try:
163
 		try:
164
-			self.total_authors = int(getpipeoutput(['git log', 'git shortlog -s', 'wc -l']))
164
+			self.total_authors = int(getpipeoutput(['git shortlog -s', 'wc -l']))
165
 		except:
165
 		except:
166
 			self.total_authors = 0
166
 			self.total_authors = 0
167
 		#self.total_lines = int(getoutput('git-ls-files -z |xargs -0 cat |wc -l'))
167
 		#self.total_lines = int(getoutput('git-ls-files -z |xargs -0 cat |wc -l'))