瀏覽代碼

Quotes around date and commit range to allow spaces in those fields; eg "5 months ago" for a date

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Craig R. Hughes 10 年之前
父節點
當前提交
55c5c28555
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      gitstats

+ 1
- 1
gitstats 查看文件

@@ -75,7 +75,7 @@ def getpipeoutput(cmds, quiet = False):
75 75
 def getlogrange(defaultrange = 'HEAD', end_only = True):
76 76
 	commit_range = getcommitrange(defaultrange, end_only)
77 77
 	if len(conf['start_date']) > 0:
78
-		return '--since=%s %s' % (conf['start_date'], commit_range)
78
+		return '--since="%s" "%s"' % (conf['start_date'], commit_range)
79 79
 	return commit_range
80 80
 
81 81
 def getcommitrange(defaultrange = 'HEAD', end_only = False):