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

Re: Can I prevent someone clone my git repository?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 8, 2009, 14:42 UTC
Message-ID
<alpine.DEB.1.00.0901081541041.30769@pacific.mpi-cbg.de>
In-Reply-To
<20090108143257.GX21154@genesis.frugalware.org>
Hi,
On Thu, 8 Jan 2009, Miklos Vajna wrote:
Show 9 quoted lines
> On Thu, Jan 08, 2009 at 12:27:59PM +0100, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > > like git://your-host/repository.git
> > 
> > If the people are on different IPs, a hook can restrict who may clone, 
> > since commit v1.6.1-rc1~109.
> 
> Hmm, but I think there is no hook called "pre-send" or so that could 
> return status code 1 to prevent receiving, so that commit on its own 
> does not does what Emily needs here.
Oops.  I assumed there is a pre-upload hook, but apparently I was wrong.
Would be easy to introduce that hook, though...

Ciao, Dscho

Previous: Miklos VajnaNext: Shawn O. Pearce
Message 8 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.