Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execCommand mistakenly removes empty content at the beginning and end of a file. #463

Open
TerryChan opened this issue Apr 25, 2023 · 2 comments
Labels

Comments

@TerryChan
Copy link

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.

@steelbrain steelbrain added the bug label Apr 30, 2023
@steelbrain
Copy link
Owner

I would be happy to accept a PR for this (along with some test cases)!

@szakharchenko
Copy link

For what it's worth, the output gets trimmed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants