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

Re: Re: [PATCH] Add USER environment variable to executed git commands when serving

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Jun 3, 2009, 20:27 UTC
Message-ID
<20090603202701.GA8739@macbook.lan>
In-Reply-To
<2e24e5b90906022324pe6769d5vfa5e3eec44daeaf3@mail.gmail.com>
On Wed, Jun 03, 2009 at 11:54:50AM +0530, Sitaram Chamarty wrote:
Show 7 quoted lines
> On Wed, Jun 3, 2009 at 6:34 AM, Sitaram Chamarty <sitaramc@gmail.com> wrote:
> 
> > I will test it out today at work and report back but it should work; I
> > don't see why it wouldn't, unless somewhere else there's a
> > sanitisation of env vars going on for security.
> 
> works beautifully!  Thanks again.

You are welcome. An interesting addition would be to propagate allowed branchnames from gitosis.conf. That way you can implement write- protected branches using an update hook.

Which enables better support for a maintainer based workflow for centralized setups. Every developer would be allowed to push all branch names he likes but the master branch is only writable by the maintainer.

A nice solution to steer this directly from gitosis.conf? I never got around implementing it.

cheers Heiko
Previous: Sitaram ChamartyNext: Robin H. Johnson
Message 9 of 11 in “gitosis question: identifying/logging remote user”
  1. Sitaram ChamartyJun 2, 2009
  2. Robin H. JohnsonJun 2, 2009
  3. Sitaram ChamartyJun 2, 2009
  4. Robin H. JohnsonJun 2, 2009
  5. Sitaram ChamartyJun 3, 2009
  6. Add USER environment variable to executed git commands when servingHeiko Voigt, Jun 2, 2009
  7. Sitaram ChamartyJun 3, 2009
  8. Sitaram ChamartyJun 3, 2009
  9. Heiko VoigtJun 3, 2009
  10. Robin H. JohnsonJun 3, 2009
  11. Shawn O. PearceJun 3, 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.