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
Refactor the fork service slightly to take ForkRepoOptions #16744
Conversation
This reduces the number of places we need to change if we want to add other options during fork time. Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
I guess I should have mentioned: I have some local WIP that adds an option to disallow forking of a fork, the idea being that one could setup (in a highly controlled environment) something like: |
Just to clarify, there is still nothing inherently stopping someone from cloning and simply pushing to another remote (even on the same instance). |
Right, the point isn't to stop someone from cloning the repo, it's to stop them from taking up more space or providing an authoritative looking repository on "this" server. The latter forbids new repos in general, but forks are a loophole. |
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Codecov Report
@@ Coverage Diff @@
## main #16744 +/- ##
==========================================
- Coverage 45.40% 45.36% -0.04%
==========================================
Files 760 760
Lines 85483 85491 +8
==========================================
- Hits 38814 38784 -30
- Misses 40389 40423 +34
- Partials 6280 6284 +4
Continue to review full report at Codecov.
|
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Needs go fmt but otherwise looks good |
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Bah, sorry, fixed. |
This reduces the number of places we need to change if we want to add other
options during fork time.
Signed-off-by: Kyle Evans kevans@FreeBSD.org