浏览代码

git-ls-files: look for '^c' instead of '^commit'.

Heikki Hokkanen 18 年前
父节点
当前提交
b10f1a573d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      gitstats

+ 1
- 1
gitstats 查看文件

@@ -135,7 +135,7 @@ class GitDataCollector(DataCollector):
135 135
 		self.total_commits = len(lines) / 2
136 136
 		commit = '0'
137 137
 		for line in lines:
138
-			if line[:6] == 'commit':
138
+			if line[0] == 'c':
139 139
 				commit = line[7:]
140 140
 				continue
141 141