From: Junio C Hamano <gitster@pobox.com>
To: Petr Baudis <pasky@suse.cz>
Cc: <git@vger.kernel.org>, Heikki Orsila <heikki.orsila@iki.fi>
Subject: Re: [PATCHv3] Fix backwards-incompatible handling of core.sharedRepository
Date: Fri, 11 Jul 2008 17:20:29 -0700 [thread overview]
Message-ID: <7vhcawhs1e.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20080711234257.16449.85447.stgit@rover.dkm.cz> (Petr Baudis's message of "Sat, 12 Jul 2008 01:45:00 +0200")
Petr Baudis <pasky@suse.cz> writes:
> The 06cbe8550324e0fd2290839bf3b9a92aa53b70ab core.sharedRepository
> handling extension broke backwards compatibility; before, shared=1 meant
> that Git merely ensured the repository is group-writable, not that it's
> _only_ group-writable, which is the current behaviour. Thus, with umask 002,
> Git creates repository with /rw.rw.--./, this patch fixes it back to
> /rw.rw.r-./.
Is it just me who finds the above unreadable blob of black ink?
06cbe85 (Make core.sharedRepository more generic, 2008-04-16)
broke the traditional setting core.sharedRepository to true,
which was to make the repository group writable.
The call to adjust_shared_perm() should only loosen the
permission. If the user has umask 002 (or 022) that allow others
to read, the resulting files should be made readable and writable
by group, without restricting the readability by others.
> Maybe it makes sense to provide the current semantics in some way too,
> but that cannot be done at the expense of ditching backwards
> compatibility; this bug has just wasted me two hours and broke
> repo.or.cz pushing for several hours.
I do not think this gripe after the semicolon belongs before the
three-dash lines.
> Cc: Heikki Orsila <heikki.orsila@iki.fi>
> Signed-off-by: Petr Baudis <pasky@rover.dkm.cz>
> ---
>
> Oops, this testcase wouldn't really remove its test subrepository
> after itself properly, though the testsuite would still pass; of course
> this bug slipped through all the previous visual inspections of mine.
>
> Sorry for the continuous noise. :-)
Hmm, I am very puzzled.
I am afraid I have to ask you for another round. I applied only your
update to t/t1301 without the change to path.c, and the test passes, which
means either (1) the test is incorrect and does not exposing the breakage,
or (2) the breakage is not real and existing code is correct.
next prev parent reply other threads:[~2008-07-12 0:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-11 23:39 [PATCHv2] Fix backwards-incompatible handling of core.sharedRepository Petr Baudis
2008-07-11 23:45 ` [PATCHv3] " Petr Baudis
2008-07-12 0:20 ` Junio C Hamano [this message]
2008-07-12 1:15 ` [PATCHv4] " Petr Baudis
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=7vhcawhs1e.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=heikki.orsila@iki.fi \
--cc=pasky@suse.cz \
/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).