浏览代码

Trivial change to Wulf's patch.

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

+ 2
- 4
gitstats 查看文件

@@ -1288,7 +1288,7 @@ class GitStats:
1288 1288
 
1289 1289
 		if len(args) < 2:
1290 1290
 			print """
1291
-Usage: gitstats [options] <gitpath> [<gitpath>] <outputpath>
1291
+Usage: gitstats [options] <gitpath..> <outputpath>
1292 1292
 
1293 1293
 Options:
1294 1294
 -c key=value     Override configuration value
@@ -1315,9 +1315,7 @@ Default config values:
1315 1315
 		data = GitDataCollector()
1316 1316
 		data.loadCache(cachefile)
1317 1317
 
1318
-		for path in args[0:-1]:
1319
-			gitpath = path
1320
-
1318
+		for gitpath in args[0:-1]:
1321 1319
 			print 'Git path: %s' % gitpath
1322 1320
 
1323 1321
 			os.chdir(gitpath)