git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Can I prevent someone clone my git repository?

From
EREmily Ren <lingyan.ren@gmail.com>
Date
Jan 8, 2009, 09:33 UTC
Message-ID
<856bfe0e0901080133q68d0008ao1abf9d235e70279e@mail.gmail.com>
In-Reply-To
<4965C07D.705@viscovery.net>

Hannes, Could you give me a detailed steps on how to wrap git daemon by tcpd?

Junio, I think gitosis can control readonly or writable, it can't control if it's can be cloned. Am I right?

Thanks, Emily

On Thu, Jan 8, 2009 at 4:59 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
Show 10 quoted lines
> Junio C Hamano schrieb:
>> The git-daemon transport deliberately omits authentication, and you cannot
>> restrict when they come over the git native transport using a URL like
>> git://your-host/repository.git
>
> But you can wrap git daemon by tcpd and configure hosts.allow and
> hosts.deny (with all its caveats), if this suits your needs.
>
> -- Hannes
>
Previous: Johannes SixtNext: Johannes Sixt
Message 4 of 12 in “Can I prevent someone clone my git repository?”
  1. Emily RenJan 8, 2009
  2. Junio C HamanoJan 8, 2009
  3. Johannes SixtJan 8, 2009
  4. Emily RenJan 8, 2009
  5. Johannes SixtJan 8, 2009
  6. Johannes SchindelinJan 8, 2009
  7. Miklos VajnaJan 8, 2009
  8. Johannes SchindelinJan 8, 2009
  9. Shawn O. PearceJan 8, 2009
  10. Johannes SchindelinJan 8, 2009
  11. Shawn O. PearceJan 8, 2009
  12. Johannes SchindelinJan 8, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.