From: Sitaram Chamarty <sitaramc@gmail.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: Fwd: running "git init --shared" on an existing repo
Date: Mon, 22 Mar 2010 15:15:11 +0530 [thread overview]
Message-ID: <2e24e5b91003220245p7de5cd7dqc5f21230c244a268@mail.gmail.com> (raw)
In-Reply-To: <2e24e5b91003220244v2d21bf3ay5b18d1ef40781be2@mail.gmail.com>
oops-- forgot to "reply all"; so it only went to Junio...
---------- Forwarded message ----------
From: Sitaram Chamarty <sitaramc@gmail.com>
Date: Mon, Mar 22, 2010 at 3:14 PM
Subject: Re: running "git init --shared" on an existing repo
To: Junio C Hamano <gitster@pobox.com>
On Mon, Mar 22, 2010 at 12:36 PM, Junio C Hamano <gitster@pobox.com> wrote:
> Sitaram Chamarty <sitaramc@gmail.com> writes:
>
>> And it seems there was a beginning made. builtin/init-db.c at line 220 says:
>>
>> /*
>> * We would have created the above under user's umask -- under
>> * shared-repository settings, we would need to fix them up.
>> */
>
> That "the above" refers to "in this process that created the repository
> directory and populated it halfway by calling copy_templates()", and never
> "some time ago by some other process that created the repository, in which
> this process is now being run", so it is not fair to say "a beginning".
Possible, but the fact remains that when you do that "some time ago",
and then come back and do this, it *does* fix up the perms of refs,
refs/heads, and refs/tags.
> You would need to run "find $GIT_DIR -print0 | xargs -0 chown/mod ..." or
> a moral equivalent of it, I guess. Shouldn't be a rocket surgery ;-)
true... the toruble with using perl for years is that it sorta spoils
you; I need to actually *think* now, despite it not being rocket
surgery :-)
I will send a patch by and by... I wonder if cheating and calling
system("find <whatever> -type d -exec chmod g+s") will be acceptable
;-)
--
Sitaram
--
Sitaram
prev parent reply other threads:[~2010-03-22 9:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-22 6:30 running "git init --shared" on an existing repo Sitaram Chamarty
2010-03-22 7:06 ` Junio C Hamano
[not found] ` <2e24e5b91003220244v2d21bf3ay5b18d1ef40781be2@mail.gmail.com>
2010-03-22 9:45 ` Sitaram Chamarty [this message]
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=2e24e5b91003220245p7de5cd7dqc5f21230c244a268@mail.gmail.com \
--to=sitaramc@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).