node-ssh
node-ssh copied to clipboard
execCommand mistakenly removes empty content at the beginning and end of a file.
When I used the execCommand method to execute the git command "git show --textconv HEAD:README.md" in order to retrieve the content of a file, I noticed that it trimmed any empty lines at the beginning and end of the file.
This issue has been reported in ssh2 and more details can be found there. But it's not issue of ssh2.
I would be happy to accept a PR for this (along with some test cases)!
For what it's worth, the output gets trimmed here.