From: Mike Gaffney <mr.gaffo@gmail.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org
Subject: Re: Question: Is it possible to host a writable git repo over both http and ssh?
Date: Wed, 25 Mar 2009 22:27:03 -0500 [thread overview]
Message-ID: <49CAF607.1020905@gmail.com> (raw)
In-Reply-To: <20090326021259.GA5835@coredump.intra.peff.net>
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)
next prev parent reply other threads:[~2009-03-26 3:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-25 17:29 Question: Is it possible to host a writable git repo over both http and ssh? Mike Gaffney
2009-03-26 2:12 ` Jeff King
2009-03-26 3:27 ` Mike Gaffney [this message]
2009-03-26 3:36 ` Jeff King
2009-03-26 4:55 ` Mike Gaffney
2009-03-26 4:56 ` Jeff King
2009-03-26 5:18 ` Robin Rosenberg
2009-03-26 9:46 ` Rogan Dawes
2009-03-26 16:57 ` Shawn O. Pearce
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49CAF607.1020905@gmail.com \
--to=mr.gaffo@gmail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).