Skip to content

Commit

Permalink
Merge branch '1-npm-git-stats' of https://github.com/418sec/git-stats
Browse files Browse the repository at this point in the history
…into new-version
  • Loading branch information
IonicaBizau committed Oct 14, 2020
2 parents 62bd505 + 19e883e commit 8bdaaf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ var Ul = require("ul")
, ChildProcess = require("child_process")
, Deffy = require("deffy")
, Typpy = require("typpy")
, Exec = ChildProcess.exec
, Spawn = ChildProcess.spawn
, IterateObject = require("iterate-object")
;
Expand Down Expand Up @@ -528,7 +527,7 @@ GitStats.prototype.ansiCalendar = function (options, callback) {
*/
GitStats.prototype.authors = function (options, callback) {
var repo = new Gry(options.repo);
repo.exec(`shortlog -s -n --all --since "${options.start.toString()}" --until "${options.end.toString()}"`, function (err, stdout) {
repo.exec(['shortlog', '-s', '-n', '--all', '--since', options.start.toString(), '--until', options.end.toString()], function (err, stdout) {
if (err) { return callback(err); }
var lines = stdout.split("\n");
var pieData = stdout.split("\n").map(function (c) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"cli-pie": "^2.0.0",
"deffy": "^2.2.2",
"gitlog-parser": "0.0.4",
"gry": "^5.0.4",
"gry": "^6.1.0",
"is-there": "^4.0.0",
"iterate-object": "^1.1.0",
"moment": "^2.9.0",
Expand Down

0 comments on commit 8bdaaf3

Please sign in to comment.