Closed ThierryGoubier closed 9 years ago
The creation of the ProcessWrapper command misses a #yourself .. | command | command := pW new useStdout; useStderr; startWithCommand:( self gitCommand , ' -C "' , (MCFileTreeFileUtils current directoryPathString: aDirectory) , '" ' , aCommandString); yourself. ...
and maybe we should make this more fail-safe:
command waitForExit. command isRunning ifTrue:[ " throw some meaningful exception "]. r := command upToEnd. command exitCode > 0 ......
Corrections are in 90551bb; I've left an assert on the isRunning check, since the exception isn't meaningfull (in short, ProcessWrapper uses should never trigger that).
My bad, I forgot to correct the default git path attempt... will create another issue (#158) for that.
Still some issues about the very simple way of supporting ssh-agent on Windows. Will add an issue about that and close this one.
The code using ProcessWrapper is incorrect