Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
IonicaBizau committed May 14, 2021
1 parent 95de824 commit 6be69c0
Show file tree
Hide file tree
Showing 4 changed files with 983 additions and 954 deletions.
4 changes: 2 additions & 2 deletions bin/git-stats
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ new Tilda(`${__dirname}/../package.json`, {
, lightOpt = action.options.light
, dataPathOpt = action.options.data
, globalActivityOpt = action.options.globalActivity
, rawOpt = action.options.raw,
authorOpt = action.options.author
, rawOpt = action.options.raw
, authorOpt = action.options.author
;

let options = {};
Expand Down
5 changes: 2 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,6 @@ GitStats.prototype.globalActivity = function (options, callback) {
repo: options
};
}
console.log('options',options);


options.repo = Abs(options.repo);

Expand All @@ -645,9 +643,10 @@ GitStats.prototype.globalActivity = function (options, callback) {
, today = null
, cal = []
;

var logArgs = ["log","--since", options.start.format(DATE_FORMAT), "--until", options.end.format(DATE_FORMAT)]
if(options.author){
logArgs = logArgs.concat(["--author",options.author])
logArgs = logArgs.concat(["--author", options.author])
}

GitLogParser(Spawn("git",logArgs , { cwd: options.repo }).stdout).on("commit", function(commit) {
Expand Down
Loading

0 comments on commit 6be69c0

Please # to comment.