-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fix can't push git notes bug #16689
fix can't push git notes bug #16689
Conversation
Signed-off-by: a1012112796 <1012112796@qq.com>
Codecov Report
@@ Coverage Diff @@
## main #16689 +/- ##
=======================================
Coverage 45.39% 45.40%
=======================================
Files 758 758
Lines 85306 85308 +2
=======================================
+ Hits 38727 38735 +8
+ Misses 40298 40294 -4
+ Partials 6281 6279 -2
Continue to review full report at Codecov.
|
Whilst I agree that this would fix the problem, the function HookPreReceive is a total mess right now. Adding yet another It needs a more substantial refactor. The code inside the The internal server error return is incorrect as it should be a forbidden. But we need to think more carefully about which refs we're disallowing e.g. this code will now prevent any number of extensions to git and I'm not certain that that is intended. It's probably the case that this forbidden should be dropped or at least switchable. |
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.
While I agree this needs to be refactored but as hotfix this seems to be good enough for now
Closing in favor of #16706 |
Not sure can f-i-x #16688, Because this nit will't cause crash bug.