From: Jeff King Date: Thu, 26 Mar 2009 02:12:59 GMT Subject: Re: Question: Is it possible to host a writable git repo over both http and ssh? Message-ID: <20090326021259.GA5835@coredump.intra.peff.net> In-Reply-To: <49CA6A17.6050903@gmail.com> 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