mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 13:22:11 +01:00
Check the commit value
This commit is contained in:
parent
56700e987a
commit
50490187a2
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
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);
|
today = Moment(commit.date).format(DATE_FORMAT);
|
||||||
commits[today] = commits[today] || 0;
|
commits[today] = commits[today] || 0;
|
||||||
++commits[today];
|
++commits[today];
|
||||||
|
|
Loading…
Reference in a new issue