-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Handle redirects for git clone commands #6688
Conversation
👍 |
Tests fail |
Add support for repo_redirect objects in the git smart http handler so that when a user clones a repo that has been moved or renamed, they are redirected to the new location. This requires that the query string be included in the redirect as well, so that is added. Signed-off-by: James E. Blair <jeblair@redhat.com>
Codecov Report
@@ Coverage Diff @@
## master #6688 +/- ##
==========================================
+ Coverage 40.99% 40.99% +<.01%
==========================================
Files 421 421
Lines 57915 57931 +16
==========================================
+ Hits 23740 23747 +7
- Misses 31017 31023 +6
- Partials 3158 3161 +3
Continue to review full report at Codecov.
|
I've updated this to correct the issues with the tests. The new approach doesn't need any special handling for the ".git" suffix, so I edited the PR description to reflect that. |
Handle redirects in git clone commands
Add support for repo_redirect objects in the git smart http handler so that when a user clones a repo that has been moved or renamed, they are redirected to the new location.
This requires that the query string be included in the redirect as well, so that is added.