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

Re: Can I forbid somebody to pull some branch or tag from my repo with git protocol?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 17, 2008, 12:25 UTC
Message-ID
<alpine.DEB.1.00.0812171322330.28560@intel-tinevez-2-302>
In-Reply-To
<856bfe0e0812170115p73d72495ve81046127e68c281@mail.gmail.com>
Hi,
On Wed, 17 Dec 2008, Emily Ren wrote:
> I want some group can pull these branches or tags from my repo, while
> other's can't, Need I maintain two repositories ?

Either that (that would be the easy method, and also the proper one, since people would not even know what you hide), but you could patch upload-pack so that it runs a hook with the rev-list arguments in do_rev_list() in upload-pack.c, and die() if the hook returns non-zero.

Ciao, Dscho

Previous: Emily RenNext: Junio C Hamano
Message 8 of 10 in “Can I forbid somebody to pull some branch or tag from my repo with git protocol?”
  1. Emily RenDec 17, 2008
  2. Junio C HamanoDec 17, 2008
  3. Emily RenDec 17, 2008
  4. Sverre RabbelierDec 17, 2008
  5. Emily RenDec 17, 2008
  6. Sverre RabbelierDec 17, 2008
  7. Emily RenDec 17, 2008
  8. Johannes SchindelinDec 17, 2008
  9. Junio C HamanoDec 17, 2008
  10. Johannes SchindelinDec 17, 2008

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.