mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-10-01 12:41:29 +02:00
Check the commit value
This commit is contained in:
parent
56700e987a
commit
50490187a2
@ -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 New Issue
Block a user