File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " diff2html-cli" ,
3- "version" : " 1.4.6-beta1 " ,
3+ "version" : " 1.4.6-beta3 " ,
44 "homepage" : " https://www.github.com/rtfpessoa/diff2html-cli" ,
55 "description" : " Fast Diff to colorized HTML" ,
66 "keywords" : [
4646 "main" : " ./src/main.js" ,
4747 "dependencies" : {
4848 "copy-paste" : " ^1.1.4" ,
49- "diff2html" : " 2.0.0-beta1 " ,
49+ "diff2html" : " ^ 2.0.0-beta9 " ,
5050 "extend" : " ^3.0.0" ,
51- "open" : " ^ 0.0.5" ,
51+ "open" : " 0.0.5" ,
5252 "request" : " ^2.69.0" ,
53- "yargs" : " ^4.1.0 "
53+ "yargs" : " ^4.3.2 "
5454 },
5555 "devDependencies" : {
5656 "codacy-coverage" : " ^1.1.3" ,
5757 "istanbul" : " ^0.4.2" ,
58- "jscs" : " ^2.10.1 " ,
58+ "jscs" : " ^2.11.0 " ,
5959 "mocha" : " ^2.4.5"
6060 },
6161 "license" : " MIT" ,
Original file line number Diff line number Diff line change 4545 Diff2HtmlInterface . prototype . _runGitDiff = function ( gitArgsArr , callback ) {
4646 var gitArgs ;
4747 if ( gitArgsArr . length && gitArgsArr [ 0 ] ) {
48- gitArgs = gitArgsArr . join ( ' ' ) ;
48+ gitArgs = gitArgsArr . map ( function ( arg ) {
49+ return "\"" + arg + "\"" ; // wrap parameters
50+ } ) . join ( ' ' ) ;
4951 } else {
5052 gitArgs = '-M HEAD' ;
5153 }
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ function onInput(err, input) {
141141 if ( ! input ) {
142142 log . error ( 'The input is empty. Try again.' ) ;
143143 yargs . showHelp ( 'log' ) ;
144+ return ;
144145 }
145146
146147 if ( argv . diffy ) {
You can’t perform that action at this time.
0 commit comments