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

Re: Question: Is it possible to host a writable git repo over both http and ssh?

From
Mike Gaffney <mr.gaffo@gmail.com>
Date
Mar 26, 2009, 03:27 UTC
Message-ID
<49CAF607.1020905@gmail.com>
In-Reply-To
<20090326021259.GA5835@coredump.intra.peff.net>
Does this go for JGit as well?
-Mike
Jeff King wrote:
Show 16 quoted lines
> On Wed, Mar 25, 2009 at 12:29:59PM -0500, Mike Gaffney wrote:
> 
>> I am trying to setup a git repo internally at my work. I would like to  
>> make the repo accessable via https for both read and write so that we may 
>> access it from customer locations which don't allow anything but https. I 
>> would also like to host it via SSH because that protocol is much faster. I 
>> know that when you push with http it runs 'git update-server-info', would 
>> I have to make the ssh pushes do the same? Will this even work?
> 
> Yes, it should work just fine. All pushes, no matter how they arrive at
> the repository, will need to run "git update-server-info", which is what
> allows "dumb" protocols like http to read from the repository. The
> default post-update hook does this; you just need to enable it by "cd
> .git/hooks && mv post-update.sample post-update".
> 
> -Peff
-- 
-Mike Gaffney (http://rdocul.us)
Previous: Jeff KingNext: Jeff King
Message 3 of 9 in “Question: Is it possible to host a writable git repo over both http and ssh?”
  1. Mike GaffneyMar 25, 2009
  2. Jeff KingMar 26, 2009
  3. Mike GaffneyMar 26, 2009
  4. Jeff KingMar 26, 2009
  5. Mike GaffneyMar 26, 2009
  6. Jeff KingMar 26, 2009
  7. Robin RosenbergMar 26, 2009
  8. Rogan DawesMar 26, 2009
  9. Shawn O. PearceMar 26, 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.