-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Cleanup the output from the gitea internal hooks #23389
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
Conversation
2698ec5
to
6e1c5bc
Compare
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #23389 +/- ##
==========================================
- Coverage 47.61% 47.61% -0.01%
==========================================
Files 1147 1147
Lines 151225 151185 -40
==========================================
- Hits 72002 71982 -20
+ Misses 70709 70694 -15
+ Partials 8514 8509 -5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
cmd/hook.go
Outdated
@@ -207,18 +197,6 @@ Gitea or set your environment appropriately.`, "") | |||
total := 0 | |||
lastline := 0 | |||
|
|||
var out io.Writer | |||
out = &nilWriter{} | |||
if setting.Git.VerbosePush { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can set the setting as false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can set the setting as false.
You mean that we should turn off the this setting & keep all the output here?
Or turn off the this setting & cleanup these output at the same time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, maybe this PR is unnecessary. You can disable that output via setting [git]\nVERBOSE_PUSH=false
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I will close this PR.
Signed-off-by: ZheNing Hu <adlternative@gmail.com>
6e1c5bc
to
d29ed3e
Compare
Some gitea hook output "Processing 2 references" is a little noisy, so let's cleanup them.
v1.
Remove all hook output logic.
v2.
Just turn off VerbosePush setting to suppress output.
Want to fix #23364