CLI: but push does not forward (real time) the logs from git hooks like pre-push #13467
Replies: 2 comments 1 reply
-
|
That behavior matches the current push path. GitButler runs the pre-push hook itself before the actual In the current hook runner, the pre-push hook is spawned and then collected with So the hook can run and still not appear live in the UI/CLI output. If the desired behavior is real-time pre-push logs, the hook runner would need to stream the child process stdout/stderr while still preserving the final error text for GitButler's existing error handling. |
Beta Was this translation helpful? Give feedback.
-
|
I think this message correctly analyzes the cause of the problem, which also implies that there is no configuration switch that you could use to get the desired real-time behavior. However, I would consider this a UX issue because the hook information really ought to show. What's interesting is that graphical user interfaces would also benefit from showing this information in real time. So I think quick hacks won't solve this. And forwarding real-time output f from spawn programs is nothing we can currently do, but I think there's good reason to figure it out. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
It looks like when running
but push, the logs from the git-hooks that I have are not forwarded to the terminal so I can't see what is doing.I'm running unit tests on push, and actually, the logs are printed but only if something fails and only at the very end, not in a real time manner as if I run git push directly.
This might also apply for commit hooks.
Do you have an idea if it's config or maybe this is not supported, please? 🙏
Beta Was this translation helpful? Give feedback.
All reactions