Skip to content

Commit 8bdaaf3

Browse files
committed
Merge branch '1-npm-git-stats' of https://github.com/418sec/git-stats into new-version
2 parents 62bd505 + 19e883e commit 8bdaaf3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ var Ul = require("ul")
1313
, ChildProcess = require("child_process")
1414
, Deffy = require("deffy")
1515
, Typpy = require("typpy")
16-
, Exec = ChildProcess.exec
1716
, Spawn = ChildProcess.spawn
1817
, IterateObject = require("iterate-object")
1918
;
@@ -528,7 +527,7 @@ GitStats.prototype.ansiCalendar = function (options, callback) {
528527
*/
529528
GitStats.prototype.authors = function (options, callback) {
530529
var repo = new Gry(options.repo);
531-
repo.exec(`shortlog -s -n --all --since "${options.start.toString()}" --until "${options.end.toString()}"`, function (err, stdout) {
530+
repo.exec(['shortlog', '-s', '-n', '--all', '--since', options.start.toString(), '--until', options.end.toString()], function (err, stdout) {
532531
if (err) { return callback(err); }
533532
var lines = stdout.split("\n");
534533
var pieData = stdout.split("\n").map(function (c) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"cli-pie": "^2.0.0",
4040
"deffy": "^2.2.2",
4141
"gitlog-parser": "0.0.4",
42-
"gry": "^5.0.4",
42+
"gry": "^6.1.0",
4343
"is-there": "^4.0.0",
4444
"iterate-object": "^1.1.0",
4545
"moment": "^2.9.0",

0 commit comments

Comments
 (0)