Skip to content

Commit

Permalink
fix git log
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuai_Liang authored and Shuai_Liang committed Jun 21, 2016
1 parent e536d2d commit 75a2825
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/command/log.js
Expand Up @@ -65,7 +65,7 @@ module.exports = function(logSource) {

logSource = typeof logSource === 'string' ? logSource : '';

return runner.execute(['git', 'log', 'logSource',
return runner.execute(['git', 'log', logSource,
'--pretty=format:' + needOutputFormat.join('%n') + ''],
parse);
};
5 changes: 0 additions & 5 deletions src/index.js
Expand Up @@ -12,10 +12,5 @@ Git.prototype.setBaseDir = function(baseDir) {
runner.baseDir = baseDir;
return this;
}
var git = new Git('../');

git.diff('HEAD', '8db731d58b7880147', 's').then(response => {
console.log(response);
})

module.exports = Git;

0 comments on commit 75a2825

Please sign in to comment.