-
-
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
Move serv hook functionality & drop GitLogger #6993
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6993 +/- ##
==========================================
- Coverage 41.84% 41.56% -0.28%
==========================================
Files 443 446 +3
Lines 60158 60770 +612
==========================================
+ Hits 25176 25262 +86
- Misses 31692 32223 +531
+ Partials 3290 3285 -5
Continue to review full report at Codecov.
|
The change is so big and I think we need |
We already do have some basic SSH tests:
These changes were broken out as #7086 - and have been merged separately - thus showing that this PR does not change the semantics of serv/hook |
This also fixes a bug whereby on SSH you can push to archived repositories. |
* Ensure that the lfs files are created with a different prefix * Reduce the replication in git_test.go * Remove unnecessary "/"
* Move hook functionality internally * Internalise serv logic * Remove old internal paths * finally remove the gitlogger * Disallow push on archived repositories * fix lint error * Update modules/private/key.go * Update routers/private/hook.go * Update routers/private/hook.go * Update routers/private/hook.go * Updated routers/private/serv.go * Fix LFS Locks over SSH * rev-list needs to be run by the hook process * fixup * Improve git test * Ensure that the lfs files are created with a different prefix * Reduce the replication in git_test.go * slight refactor * Remove unnecessary "/" * Restore ensureAnonymousClone * Restore ensureAnonymousClone * Run rev-list on server side * Try passing in the alternative directories instead * Mark test as skipped * Improve git test * Ensure that the lfs files are created with a different prefix * Reduce the replication in git_test.go * Remove unnecessary "/"
It would be nice if, any reviewer who reviewed this ticket, could draw the attention to #8273. |
This PR moves most of the functionality of serv and hook into private routers. This reduces the number of http calls performed by these actions and allows for better logging of these actions.
In doing so it is now possible to remove the GitLogger. The only place where there is a possible reduction in functionality is in the handling of failures in enable-pprof but these are likely to be rare and not sufficient reason to keep this around.
(Fixes for LFS locks on SSH were broken out as #6999 and have been merged into master.)
(Improvements to git_test were broken out as #7086 and have been merged into master.)