Set uploadpack.allowFilter etc on gitea serv to enable partial clones with ssh#20902
Merged
zeripath merged 5 commits intoSep 4, 2022
Merged
Conversation
lunny
approved these changes
Aug 21, 2022
…with ssh When setting.Git.DisablePartialClone is set to false then the web server will add filter support to web http. It does this by using `-c` command arguments but this will not work on gitea serv as the upload-pack and receive-pack commands do not support this. Instead we move these options into the .gitconfig instead. Fix go-gitea#20400 Signed-off-by: Andrew Thornton <art27@cantab.net>
27f8eb5 to
b57e360
Compare
Contributor
Author
|
OK it looks like the |
Codecov Report
@@ Coverage Diff @@
## main #20902 +/- ##
=======================================
Coverage ? 46.96%
=======================================
Files ? 993
Lines ? 136773
Branches ? 0
=======================================
Hits ? 64230
Misses ? 64663
Partials ? 7880
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
lunny
approved these changes
Sep 4, 2022
Gusted
approved these changes
Sep 4, 2022
delvh
approved these changes
Sep 4, 2022
zeripath
added a commit
to zeripath/gitea
that referenced
this pull request
Sep 4, 2022
… with ssh (go-gitea#20902) Backport go-gitea#20902 When setting.Git.DisablePartialClone is set to false then the web server will add filter support to web http. It does this by using`-c` command arguments but this will not work on gitea serv as the upload-pack and receive-pack commands do not support this. Instead we move these options into the .gitconfig instead. Fix go-gitea#20400 Signed-off-by: Andrew Thornton <art27@cantab.net>
techknowlogick
pushed a commit
that referenced
this pull request
Sep 4, 2022
… with ssh (#20902) (#21058) Backport #20902 When setting.Git.DisablePartialClone is set to false then the web server will add filter support to web http. It does this by using`-c` command arguments but this will not work on gitea serv as the upload-pack and receive-pack commands do not support this. Instead we move these options into the .gitconfig instead. Fix #20400 Signed-off-by: Andrew Thornton <art27@cantab.net> Signed-off-by: Andrew Thornton <art27@cantab.net>
zjjhot
added a commit
to zjjhot/gitea
that referenced
this pull request
Sep 5, 2022
* upstream/main: (22 commits) [skip ci] Updated translations via Crowdin Webhook for Wiki changes (go-gitea#20219) test: use `T.TempDir` to create temporary test directory (go-gitea#21043) Set uploadpack.allowFilter etc on gitea serv to enable partial clones with ssh (go-gitea#20902) Fix 500 on time tracking in timeline API (go-gitea#21052) Add more checks in migration code (go-gitea#21011) Fill the specified ref in webhook test payload (go-gitea#20961) [skip ci] Updated licenses and gitignores Add go licenses to licenses.txt (go-gitea#21034) Added docs for agit-setup (go-gitea#21027) Add another index for Action table on postgres (go-gitea#21033) Delete unreferenced packages when deleting a package version (go-gitea#20977) Improve arc-green code theme (go-gitea#21039) Add down key check has tribute container (go-gitea#21016) Do not add links to Posters or Assignees with ID < 0 (go-gitea#20577) [skip ci] Updated translations via Crowdin Show language name on hover (go-gitea#20923) fix: PackageMetadataVersion deps (go-gitea#21017) Fix the quick-submit for pending review comment (go-gitea#20992) Kd/ci playwright go test (go-gitea#20123) ...
zeripath
added a commit
to zeripath/gitea
that referenced
this pull request
Nov 13, 2022
When backporting go-gitea#20902 in go-gitea#21058 there was a slight misbackport. It was missed that we needed to remove the global command option before setting the settings. Fix go-gitea#21805 Signed-off-by: Andrew Thornton <art27@cantab.net>
lunny
pushed a commit
that referenced
this pull request
Nov 14, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When setting.Git.DisablePartialClone is set to false then the web server will add filter support to web http. It does this by using
-ccommand arguments but this will not work on gitea serv as the upload-pack and receive-pack commands do not support this.Instead we move these options into the .gitconfig instead.
Fix #20400
Signed-off-by: Andrew Thornton art27@cantab.net