From: Junio C Hamano <gitster@pobox.com>
To: Francesco Pretto <ceztkoml@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [Patch] Documentation: enhanced "git for CVS users" doc about shared repositories
Date: Mon, 05 Nov 2007 15:52:28 -0800 [thread overview]
Message-ID: <7v8x5cmern.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <472F99F8.4010904@gmail.com> (Francesco Pretto's message of "Mon, 05 Nov 2007 23:32:24 +0100")
Francesco Pretto <ceztkoml@gmail.com> writes:
> More detailed instructions on how to set up shared repositories.
> Added a reference to "git for CVS users" doc in git-init manual.
>
> Signed-off-by: Francesco Pretto <ceztkoml@gmail.com>
> ---
> Documentation/cvs-migration.txt | 72 ++++++++++++++++++++++++++++++--------
> Documentation/git-init.txt | 7 ++++
> 2 files changed, 64 insertions(+), 15 deletions(-)
>
> diff --git a/Documentation/cvs-migration.txt b/Documentation/cvs-migration.txt
> index 3b6b494..c92ed49 100644
> --- a/Documentation/cvs-migration.txt
> +++ b/Documentation/cvs-migration.txt
> @@ -13,12 +13,12 @@ link:tutorial.html[tutorial introduction to git] should be sufficient.
> Developing against a shared repository
> --------------------------------------
>
> -Suppose a shared repository is set up in /pub/repo.git on the host
> +Suppose a shared repository is set up in /pub/scm/repo.git on the host
> foo.com. Then as an individual committer you can clone the shared
> repository over ssh with:
>
> ------------------------------------------------
> -$ git clone foo.com:/pub/repo.git/ my-project
> +$ git clone foo.com:/pub/scm/repo.git/ my-project
> $ cd my-project
> ------------------------------------------------
This part seems an unnecessary change.
> @@ -68,37 +68,79 @@ other than `master`.
> Setting Up a Shared Repository
> ------------------------------
>
> -We assume you have already created a git repository for your project,
> -possibly created from scratch or from a tarball (see the
> -link:tutorial.html[tutorial]), or imported from an already existing CVS
> -repository (see the next section).
> +We assume you have admin privilege on the remote machine. Moreover, we assume
> +you have already created a git repository for your project, possibly created
> +from scratch or from a tarball (see the link:tutorial.html[tutorial]),or
> +imported from an already existing CVS repository (see the next section).
Don't assume the "admin privilege" part, as you do not have to.
You are newly hired to work on project-X, and the sysadm throws
you into projectx group. Thesysadm further prepares a directory
'/pub/project-X' and makes it mode 2775 (aka ug=rwx,o=rx,g+s).
Do you want to create a new repository for projext-X group's
use? You do:
$ cd /pub/project-X
$ GIT_DIR=mine.git git init --shared
and you now have a usable /pub/project-X/mine.git repository for
project members. I do not think you would need any chmod/chgrp
after this step.
> +First, let's create a common directory for all the projects you'll want to
> +track with git:
> +
> +-----------------------------------------------
> +$ mkdir -p /pub/scm
> +-----------------------------------------------
An organization may use different SCM depending on the projects'
needs, and there is no reason members of projects A and B should
be in the same group 'git' while having members of project C in
group 'hg' only because A and B happen to use git. It would
make more sense to either (1) make members of all three projects
belong to 'src' group, or (2) make three groups, one for each
project.
IOW, I do not think the above is a good suggestion.
Also with the "create new --shared repository for the project in
a group's directory that has mode 2755" approach, I do not think
there is any need to muck with umask either.
next prev parent reply other threads:[~2007-11-05 23:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-05 22:32 [Patch] Documentation: enhanced "git for CVS users" doc about shared repositories Francesco Pretto
2007-11-05 23:52 ` Junio C Hamano [this message]
2007-11-06 10:04 ` Francesco Pretto
2007-11-06 10:53 ` Johannes Schindelin
2007-11-06 11:14 ` Francesco Pretto
2007-11-06 21:44 ` [PATCH] " Francesco Pretto
2007-11-06 23:25 ` Junio C Hamano
2007-11-07 0:46 ` Francesco Pretto
2007-11-07 0:55 ` Johannes Schindelin
2007-11-07 1:10 ` Francesco Pretto
2007-11-07 1:36 ` Aghiles
2007-11-07 7:35 ` Steffen Prohaska
2007-11-07 8:45 ` Andreas Ericsson
2007-11-07 9:09 ` David Kastrup
2007-11-07 17:32 ` J. Bruce Fields
2007-11-07 8:03 ` Wincent Colaiuta
2007-11-07 8:07 ` Steffen Prohaska
2007-11-07 16:47 ` J. Bruce Fields
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=7v8x5cmern.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=ceztkoml@gmail.com \
--cc=git@vger.kernel.org \
/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).