Skip to contentSkip to conversation

url.<base>.insteadOf used for server-side redirection?

DISCUSSION Paul Sokolovsky 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hello,

There's a nice git config directive url.insteadOf
(https://www.kernel.org/pub/software/scm/git/docs/git-config.html , search for "insteadOf"). However, than man doesn't make it explicit if it can be used in server-side repository config, and all examples on the net appear to be about its usage on user's local side.

So, is the remote use supported? Like a user issues a git clone with one URL, but gets redirect to another URL and git client proceeds to clone from it. Our usecase is to redirect git:// clones to http:// to avoid some scalability issues.

If it's not supported, any chance it could be? Maybe it was discussed and voted down? Or voted up and someone has it in their queue? Note that the talk is about git-specific redirects, like redirecting one git protocol to another.

Thanks,
Paul

Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog