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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Does this go for JGit as well?

-Mike

Jeff King wrote:
> 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)
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux