All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: Paul Tarjan <ptarjan@gmail.com>
Cc: Jeff King <peff@peff.net>, git@vger.kernel.org, yury239@gmail.com
Subject: Re: Git Confusion
Date: Fri, 29 May 2009 22:45:55 +0200	[thread overview]
Message-ID: <200905292245.56702.jnareb@gmail.com> (raw)
In-Reply-To: <815c8c330905291324w4e861602n8278df72fdbc28db@mail.gmail.com>

On Fri, 29 May 2009, Paul Tarjan wrote:
> Thank you very much. For skimmers the solution is :
> 
> git update-server-info
> 
> every time I do something to the remote repo.
> 
> The reason I need http is slightly convoluted. The remote machine is
> shared hosting with 1 ssh login that I don't want to give to my
> partner AND I don't have root on that box. And as you correctly
> guessed, that box doesn't have the git demon. The local machine where
> he is doing his development. The only solution I saw without giving
> him my username + pass to SSH was to do http cloning. Any better
> solutions?

I see two possible solutions (and you can use both):

1. Have separate publishing repository, which would be bare, and updated
   only via push (so enabling 'update' / 'post-receive' hooks would be
   enough for HTTP). This is good idea also because it makes it possible
   to change commits (rewrite history), e.g. do "git commit --amend"...
   provided that you didn't push part of history you are changing to
   public repository. If you are worrying about disk space, you can
   always set up alternates.

2. Use Gitosis (or ssh_acl) to control access via SSH to repository
   without need to provide extra user accounts, or use git-shell as
   login shell for user accounts which are meant only to access
   repositories. I think you can use Gitosis without being a root...
   see link in BlogPosts page at Git Wiki.

-- 
Jakub Narebski
Poland

  parent reply	other threads:[~2009-05-29 20:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-29  7:43 Git Confusion Paul Tarjan
2009-05-29 12:58 ` Jeff King
2009-05-29 13:44   ` Jakub Narebski
2009-05-29 13:52     ` Jeff King
2009-05-29 20:24       ` Paul Tarjan
2009-05-29 20:28         ` Avery Pennarun
2009-05-29 20:38         ` Jeff King
2009-05-30  0:41           ` Sitaram Chamarty
2009-05-29 20:45         ` Jakub Narebski [this message]
2009-05-30  1:32           ` Sitaram Chamarty

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=200905292245.56702.jnareb@gmail.com \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    --cc=ptarjan@gmail.com \
    --cc=yury239@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.