Check the commit value

This commit is contained in:
Ionică Bizău 2015-07-13 10:53:04 +03:00
parent 56700e987a
commit 50490187a2

View file

@ -445,6 +445,7 @@ GitStats.prototype.globalActivity = function (options, callback) {
;
GitLogParser(Spawn("git", ["log", "--since", options.start.format(DATE_FORMAT), "--until", options.end.format(DATE_FORMAT)], { cwd: options.repo }).stdout).on("commit", function(commit) {
if (!commit) { return; }
today = Moment(commit.date).format(DATE_FORMAT);
commits[today] = commits[today] || 0;
++commits[today];