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

Re: Init on push

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 8, 2008, 20:12 UTC
Message-ID
<7v8wruc6z1.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<bb6f213e0811081201w22a36800j1713b91d0cf66fb2@mail.gmail.com>
"Alexander Gavrilov" <angavrilov@gmail.com> writes:
> Gitosis works by replacing the shell with a program called
> gitosis-serve, which parses and validates the incoming commands
> against the user access configuration. If it sees an unknown command,
> it will simply refuse to execute it.

If you implement a new feature by enhancing receive-pack (or anything else), you obviously cannot use the new feature against an installation with an older implementation, so what you said is a known. My point was how to enhance the receiving end and what constraints we would have in enhancing it.

> On the other hand it will automatically perform initialization before
> calling receive-pack if the user is authorized to write to a certain
> path, but the repository does not exist yet.

That's good to know. I also realize that gitosis does not need any hook for "git init -D $there" to decide whether a new repository can be created at requested location, as it reads the command line and makes decision before driving the underlying command in response to the request.

On the other hand, people who enable 'push' access to their git-daemon would need it, as the daemon would not even know who is asking for --init.

Previous: Alexander GavrilovNext: Jakub Narebski
Message 4 of 11 in “Init on push”
  1. Robin RosenbergNov 8, 2008
  2. Junio C HamanoNov 8, 2008
  3. Alexander GavrilovNov 8, 2008
  4. Junio C HamanoNov 8, 2008
  5. Jakub NarebskiNov 8, 2008
  6. Francis GaliegueNov 8, 2008
  7. Junio C HamanoNov 8, 2008
  8. Francis GaliegueNov 8, 2008
  9. Francis GaliegueNov 8, 2008
  10. Junio C HamanoNov 9, 2008
  11. Francis GaliegueNov 9, 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.