[RFC] Relocate repos when using scan-path

Florian Pritz bluewind at xinu.at
Sun May 19 13:54:25 CEST 2013


On 18.05.2013 18:06, John Keeping wrote:
> On Sat, May 18, 2013 at 05:46:35PM +0200, Jason A. Donenfeld wrote:
>> On Sat, May 18, 2013 at 5:27 PM, Florian Pritz <bluewind at xinu.at> wrote:
>> > The point is that I want to keep already cloned repositories (as in "git
>> > clone git://foo" via git-daemon) working and mod_rewrite won't help with
>> > that even though it would probably work fine with the http clones.
>> 
>> Make a directory elsewhere on the file system.
>> Symlink everything you need into it.
>> Point git-daemon at that.
> 
> Subject: [PATCH] Add scan-exclude option to filter out repositories

That's a global option and I don't want to update the global config each
time I add/move repos.

Maybe we could check if the repo dir is a symlink and only hide it and
redirect to the new location if the last target is within scan-path?

That would allow users to easily move repos to subdirectories while
still allowing them to get the current behaviour back by simply moving
the target somewhere outside scan-path and placing some symlinks.

It also won't need a option if documented properly and IMHO it's rather
intuitive.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20130519/a079431e/attachment.asc>


More information about the CGit mailing list