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

Re: Git Confusion

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
May 30, 2009, 00:41 UTC
Message-ID
<slrnh2105v.460.sitaramc@sitaramc.homelinux.net>
In-Reply-To
<20090529203854.GA14326@coredump.intra.peff.net>
On 2009-05-29 20:38:54, Jeff King <peff@peff.net> wrote:
Show 5 quoted lines
> On Fri, May 29, 2009 at 01:24:59PM -0700, Paul Tarjan wrote:
>
>> The reason I need http is slightly convoluted. The remote machine is
>> shared hosting with 1 ssh login that I don't want to give to my
>> partner AND I don't have root on that box.
[snip]
Show 12 quoted lines
> You can let him login via ssh key and restrict the actions of that key
> just to running git-upload-pack (which is what "git clone" and "git
> fetch" will invoke to clone or fetch commits). Something like:
>
>   command="git-upload-pack /path/to/repo" ssh-rsa ...
>
> in your .ssh/authorized_keys file. Not that he still won't be able to
> actually push (which is maybe what you want).
>
> For a more featureful solution (with permissions for pushing and pulling
> multiple repos), I think gitosis will do what you want (but I have never
> used it personally).

gitosis is indeed quite featureful. I use it at work to admin about 11 projects with between 1-6 devs and it works very well. All done with ssh pubkey and the "command=" feature of .ssh/authorized_keys that Jeff mentioned above, with a bit of python to read a conf file and decide who is allowed to read/write what repository etc.

Previous: Jeff KingNext: Jakub Narebski
Message 8 of 10 in “Git Confusion”
  1. Paul TarjanMay 29, 2009
  2. Jeff KingMay 29, 2009
  3. Jakub NarebskiMay 29, 2009
  4. Jeff KingMay 29, 2009
  5. Paul TarjanMay 29, 2009
  6. Avery PennarunMay 29, 2009
  7. Jeff KingMay 29, 2009
  8. Sitaram ChamartyMay 30, 2009
  9. Jakub NarebskiMay 29, 2009
  10. Sitaram ChamartyMay 30, 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.