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

Return error output when git commands fail #3738

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

patrobinson
Copy link
Contributor

While investigating an issue where git clones failed I found no command output was being logged.

There's two different classes involved in running commands via the ensure_tag_in_git_repository code path where the issue occurs.
Therefore I've added logging of command results to both (CommandExecutor and TerminalExecutor)

Patrick Robinson added 2 commits March 5, 2020 10:44
CommandExecutor returns stderr as a seperate stream
@patrobinson patrobinson requested a review from a team March 4, 2020 23:48
@grosser
Copy link
Contributor

grosser commented Mar 5, 2020

I like the capturing of err and out!
not a fan of openstruct though, prefer a Hash ... even better with a success, out, err triplet 🤷‍♂

@patrobinson
Copy link
Contributor Author

Yeah I've been writing Golang too long. Guess a Hash achieves the same thing

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

Successfully merging this pull request may close these issues.

None yet

2 participants