Przeglądaj źródła

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 lat temu
rodzic
commit
55c5c28555
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      gitstats

+ 1
- 1
gitstats Wyświetl plik

@@ -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):