Re: Does smart-http need git-daemon-export-ok?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 26, 2009, 17:33 UTC
- Message-ID
- <7vk4w963np.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <905315640912260821k2fb149b3je69dbea5463afaa3@mail.gmail.com>
Tarmigan <tarmigan+git@gmail.com> writes:
> Should the git-http-backend check something like git-daemon-export-ok > before serving a repository?
I'd agree that it would make sense to have a way to mark individual repository for (or not for) export.
In "native" case, the chain of events are: client talks to the daemon, the daemon checks and decides to (or not to) export, and it runs upload-pack.
In "smart http" case, http-backend is one half of what corresponds to the daemon (the other half being your http server configuration), and it is more flexible and git specific half, so I'd say it would make sense to implement the check that honors the same git-daemon-export-ok flag file in it.