| Summary: | Disable cloning from cgit | ||
|---|---|---|---|
| Product: | Community | Reporter: | Brian de Alwis <bsd> |
| Component: | Git | Assignee: | Eclipse Webmaster <webmaster> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Brian de Alwis
> git clone > ssh://bdealwis@git.eclipse.org/gitroot/babel/org.eclipse.babel.server.git > git clone git://git.eclipse.org/gitroot/babel/org.eclipse.babel.server.git I've removed those examples, since that repo doesn't exist anymore. > I also tried with /c/platform/eclipse.platform.ui.git, where I should have > access: I'm renaming this bug to disable cloning from cgit (the web front-end). cgit doesn't support the smart server. If you clone using the clone URLs at the bottom of each repo page, you'll notice the http URLs support the smart server. (In reply to comment #1) > I'm renaming this bug to disable cloning from cgit (the web front-end). cgit > doesn't support the smart server. If you clone using the clone URLs at the > bottom of each repo page, you'll notice the http URLs support the smart server. That's a pity (for me) since bzr-git doesn't yet support smart-server over http. Oh well. Thanks Denis. Our current version of cgit doesn't (easily) allow me to disable cloning directly from cgit, so I've put these rewrite rules which do just that:
# Prevent people from cloning from cgit
RewriteRule ^/c/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /c/ [F,L]
RewriteRule ^/c/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /c/ [F,L]
This has been fixed. |