File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " diff2html-cli" ,
3
- "version" : " 1.4.6-beta1 " ,
3
+ "version" : " 1.4.6-beta3 " ,
4
4
"homepage" : " https://www.github.com/rtfpessoa/diff2html-cli" ,
5
5
"description" : " Fast Diff to colorized HTML" ,
6
6
"keywords" : [
46
46
"main" : " ./src/main.js" ,
47
47
"dependencies" : {
48
48
"copy-paste" : " ^1.1.4" ,
49
- "diff2html" : " 2.0.0-beta1 " ,
49
+ "diff2html" : " ^ 2.0.0-beta9 " ,
50
50
"extend" : " ^3.0.0" ,
51
- "open" : " ^ 0.0.5" ,
51
+ "open" : " 0.0.5" ,
52
52
"request" : " ^2.69.0" ,
53
- "yargs" : " ^4.1.0 "
53
+ "yargs" : " ^4.3.2 "
54
54
},
55
55
"devDependencies" : {
56
56
"codacy-coverage" : " ^1.1.3" ,
57
57
"istanbul" : " ^0.4.2" ,
58
- "jscs" : " ^2.10.1 " ,
58
+ "jscs" : " ^2.11.0 " ,
59
59
"mocha" : " ^2.4.5"
60
60
},
61
61
"license" : " MIT" ,
Original file line number Diff line number Diff line change 45
45
Diff2HtmlInterface . prototype . _runGitDiff = function ( gitArgsArr , callback ) {
46
46
var gitArgs ;
47
47
if ( gitArgsArr . length && gitArgsArr [ 0 ] ) {
48
- gitArgs = gitArgsArr . join ( ' ' ) ;
48
+ gitArgs = gitArgsArr . map ( function ( arg ) {
49
+ return "\"" + arg + "\"" ; // wrap parameters
50
+ } ) . join ( ' ' ) ;
49
51
} else {
50
52
gitArgs = '-M HEAD' ;
51
53
}
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ function onInput(err, input) {
141
141
if ( ! input ) {
142
142
log . error ( 'The input is empty. Try again.' ) ;
143
143
yargs . showHelp ( 'log' ) ;
144
+ return ;
144
145
}
145
146
146
147
if ( argv . diffy ) {
You can’t perform that action at this time.
0 commit comments