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

Invoke-GitCommand doesn't return exit code or stderror #72

Open
MarkMichaelis opened this issue Sep 29, 2019 · 0 comments
Open

Invoke-GitCommand doesn't return exit code or stderror #72

MarkMichaelis opened this issue Sep 29, 2019 · 0 comments
Assignees

Comments

@MarkMichaelis
Copy link
Member

Invoke-GitCommand needs to be changed over to use Start-Process in order to capture the standard error output and the last exit code.

The current work around is to redirect standard error by appending 2>&1 following the call to Invoke-GitCommand. You can also get the $lastexitcode if there is only one command in the $Command parameter of Invoke-GitCommand.

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

No branches or pull requests

2 participants