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

Re: Init on push

From
Alexander Gavrilov <angavrilov@gmail.com>
Date
Nov 8, 2008, 20:01 UTC
Message-ID
<bb6f213e0811081201w22a36800j1713b91d0cf66fb2@mail.gmail.com>
In-Reply-To
<7viqqyc93w.fsf@gitster.siamese.dyndns.org>
On Sat, Nov 8, 2008 at 10:26 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> An easy alternative would be to issue the usual "mkdir && git init" shell
> script before spawning receive-pack.  This will limit the feature to
> pushing over the ssh transport, and pushing over the git protocol against
> a loose git-daemon will not be able to support it.  Also I suspect this
> will break sites managed by gitosis, where all repositories are held under
> the same UNIX user identity, differenciated only via an environment it
> sets based on the ssh key used to make the connection.

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.

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.

Alexander
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 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.