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

Need to trap stderr separately from stdout #40

Open
bobbingwide opened this issue Dec 28, 2019 · 1 comment
Open

Need to trap stderr separately from stdout #40

bobbingwide opened this issue Dec 28, 2019 · 1 comment
Assignees

Comments

@bobbingwide
Copy link
Owner

In includes/class-git.php the command method currently redirects stderr to stdout. This can cause problems downstream, where the output is misinterpreted as files to process, for example. It would be better if this could be returned and handled separately.

See https://stackoverflow.com/questions/2320608/php-stderr-after-exec for one option

@bobbingwide
Copy link
Owner Author

When performing an update of a plugin for wp-a2z.org e.g. update jetpack 8.1 the solution using execute_with_proc_open hangs, or appears to hang during 'git add .'

Don't know why.

Workaround:

revert to using the execute method.

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

No branches or pull requests

1 participant