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

Library takes stdout into consideration only #205

Open
andreaskienast opened this issue Jul 11, 2023 · 0 comments · May be fixed by #206
Open

Library takes stdout into consideration only #205

andreaskienast opened this issue Jul 11, 2023 · 0 comments · May be fixed by #206

Comments

@andreaskienast
Copy link

I've migrated my code from symplify/git-wrapper to gitonomy/gitlib - unfortunately, I found a blocking issue. My code relies on the output Git produces, especially from the git push command. I learned that stdout doesn't contain any content as git push writes its output to stderr!

Unfortunately, the method Repository->run() takes stderr only into consideration if the actual process failed, which is not the case here.

andreaskienast added a commit to andreaskienast/gitlib that referenced this issue Jul 11, 2023
Git writes the output of some commands into `stderr` instead of
`stdout` (e.g. `push`). Using the option `--porcelain` doesn't always
help in such cases as other information may be missing. To get the full
output, `stderr` is now fetched in case `stdout` is empty.

Fixes: gitonomy#205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant