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

Git: Need ability to see response from Remote on push/pull/sync #85732

Closed
ggedde opened this issue Nov 27, 2019 · 4 comments
Closed

Git: Need ability to see response from Remote on push/pull/sync #85732

ggedde opened this issue Nov 27, 2019 · 4 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@ggedde
Copy link

ggedde commented Nov 27, 2019

Currently, when I run a push, pull, or sync I don't get any way to view the response from the remote. Clicking on "Show Git Output" only seems to show the Git output from my machine, but not the response from the remote. I am just looking for an option somewhere in settings, etc to change the focus of "Show Git Output" to the remote response. Basically seeing the same results as if you ran git from a terminal.

There are many services out there that provide more details then just the normal git output.
For example, WPEngine provides much more information, like clearing caches, etc. It also takes much longer than normal and it is a little unclear if everything ran accordingly without seeing the response. Also there may be warnings or notices from the remote that will get missed without seeing the responses.

Here is an Example from a WPEngine push when running from the Terminal:
image

@joaomoreno
Copy link
Member

We do output both stdout and stderr. It might actually be that git won't output the remote: lines if it detects it isn't in a TTY. Can you try seeing which output is stdout and which is stderr?

git push > stdout.log 2> stderr.log

Also, can you show me what Git: Show Git Output shows when you run git push?

@joaomoreno joaomoreno added the info-needed Issue requires more information from poster label Dec 2, 2019
@ggedde
Copy link
Author

ggedde commented Dec 2, 2019

@joaomoreno My apologies, it does output the data from the remote.
However, it waits until the remote is completely done before it outputs any data than also adds some generic Git details.

The reason I thought that it didn't was because I have to scroll way back up to see the response from the server I didn't notice that before and because it does it at the end of the response and I usually only have about 4-5 lines showing normally so I didn't see any of the WPEngine output.
image

So I will close this for now, but ideally I would like to see the response from the remote server come in as it does from a Terminal response. Showing instantly and with the correct terminal colors instead of the raw output. So I will make a separate Feature Request for that.

@ggedde ggedde closed this as completed Dec 2, 2019
@ggedde
Copy link
Author

ggedde commented Dec 2, 2019

FYI, when running git push > stdout.log 2> stderr.log WPEngine gets loaded into stderr
@joaomoreno Do you know if the reasoning that it waits for the full response before it shows is because of strerr? Can you confirm that if WPEngine responded in steout it would show immediately instead of the waiting until the end?

@joaomoreno
Copy link
Member

Yeah, we don't really stream the output but just accumulate it until the command is over. The reason for this is that we sometimes run commands in parallel. If we did stream the output, they would appear all intermixed, making it hard to read.

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants