IntelliTect / IntelliTect/PSToolbox

Invoke-GitCommand doesn't return exit code or stderror

Open
#72 0 comments 0 reactions 1 assignee Claimed by @adamskt View on GitHub
Dominant language
PowerShell
Stars
10
Forks
4
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.