Browse Source

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 years ago
parent
commit
55c5c28555
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      gitstats

+ 1
- 1
gitstats View File

75
 def getlogrange(defaultrange = 'HEAD', end_only = True):
75
 def getlogrange(defaultrange = 'HEAD', end_only = True):
76
 	commit_range = getcommitrange(defaultrange, end_only)
76
 	commit_range = getcommitrange(defaultrange, end_only)
77
 	if len(conf['start_date']) > 0:
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
 	return commit_range
79
 	return commit_range
80
 
80
 
81
 def getcommitrange(defaultrange = 'HEAD', end_only = False):
81
 def getcommitrange(defaultrange = 'HEAD', end_only = False):