You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
execCommand mistakenly removes empty content at the beginning and end of a file. #463
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.
Activity
steelbrain commentedon Apr 30, 2023
I would be happy to accept a PR for this (along with some test cases)!
szakharchenko commentedon Aug 18, 2023
For what it's worth, the output gets trimmed here.
test: add unit tests for noTrim option in execCommand
steelbrain commentedon Jun 29, 2026
Fixed by #485