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

Output from hooks? #68

Open
TonyGravagno opened this issue Sep 5, 2024 · 0 comments
Open

Output from hooks? #68

TonyGravagno opened this issue Sep 5, 2024 · 0 comments
Assignees

Comments

@TonyGravagno
Copy link

This is a git thing and not directly related to this extension, but is there a solution to the problem where git hooks only output to stdout if there is an error that results in exit code of non-zero?

The problem is that we can't show progress in a hook to the git console with echo (or in my case with NodeJS with console.log()) unless we exit with an error. If a hook proceeds to return with code 0 then it suppresses the output.

I'm wondering if there is a way for this extension to capture output to stdout and output that rather than allowing git console output to completely control stdout.

What about optionally injecting GIT_TRACE into the git command lines?

GIT_TRACE=1 git commit

@daiyam daiyam self-assigned this Nov 14, 2024
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

No branches or pull requests

2 participants