Page MenuHomePhabricator

Accessing raw link on git.wikimedia.org causes "Error Sorry, the repository mediawiki does not have a extensions branch!"
Closed, DeclinedPublic

Description

Example:

access:

http://git.wikimedia.org/blob/mediawiki%2Fextensions%2FSemanticMediaWiki.git/master/COPYING

clicking "raw" link takes me to:

http://git.wikimedia.org/raw/mediawiki/extensions/SemanticMediaWiki.git/master/COPYING

which generates

`
Error

Sorry, the repository mediawiki does not have a extensions branch!
`

Event Timeline

saper raised the priority of this task from to Needs Triage.
saper updated the task description. (Show Details)
saper added projects: Gitblit, SRE.
saper subscribed.

Same as T117459 ? Not sure why "operations" was added to this task?

Please read https://github.com/gitblit/gitblit/issues/949#issuecomment-155110940

According to the author of gitblit this was never meant to work like this with sub folders.

And could be fixed with ! in the config I think.

And could be fixed with ! in the config I think.

Unfortunately the full quote is:

"This could be fixed by writing urls using the forward-slash-character from the settings (e.g. ! ) and properly parsing the repo from the url using this substitute - but that is not currently implemented."

It's interesting though.. he says "I was not expecting users to create a repo and a subdirectory with the same name." Of course we did just that :p and " Gitblit AFAIK is one of the only complete git hosts (maybe the only one?) that allows nested subdirectory structures. This capability complicates everything and creates interesting problems like this one. :)"

The only actual solution we seem to have is:

could be fixed today in that installation by renaming the mediawiki/extensions repo to not collide with the mediawiki/extensions/ directory.

and i really don't see that happening.

@Aklapper added operations just in case it is related to some kind of URL rewriting/server-side configuration. Feel free to adjust/remove if needed

hashar claimed this task.
hashar subscribed.

gitblit is being phased out in favor of Phabricator Diffusion. We have no plan to upgrade gitblit so no point in keeping this task open.

Thanks anyway for the upstream patch :-)