Skip to content

Commit

Permalink
Quotes around date and commit range to allow spaces in those fields; …
Browse files Browse the repository at this point in the history
…eg "5 months ago" for a date

Signed-off-by: Heikki Hokkanen <[email protected]>
  • Loading branch information
hughescr authored and hoxu committed Jan 8, 2016
1 parent e35fea2 commit 55c5c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitstats
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def getpipeoutput(cmds, quiet = False):
def getlogrange(defaultrange = 'HEAD', end_only = True):
commit_range = getcommitrange(defaultrange, end_only)
if len(conf['start_date']) > 0:
return '--since=%s %s' % (conf['start_date'], commit_range)
return '--since="%s" "%s"' % (conf['start_date'], commit_range)
return commit_range

def getcommitrange(defaultrange = 'HEAD', end_only = False):
Expand Down

0 comments on commit 55c5c28

Please sign in to comment.