Re: Question: Is it possible to host a writable git repo over both http and ssh?
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)