From: David Turner <dturner@twopensource.com>
To: Johannes Sixt <j.sixt@viscovery.net>
Cc: git@vger.kernel.org, gitster@pobox.com,
David Turner <dturner@twitter.com>
Subject: Re: [PATCH v2] receive-pack: optionally deny case clone refs
Date: Wed, 04 Jun 2014 13:24:44 -0400 [thread overview]
Message-ID: <1401902684.18134.144.camel@stross> (raw)
In-Reply-To: <538EB748.3050300@viscovery.net>
On Wed, 2014-06-04 at 08:06 +0200, Johannes Sixt wrote:
> > +receive.denyCaseCloneBranches::
> > + If set to true, git-receive-pack will deny a ref update that creates
> > + a ref which is the same but for case as an existing ref. This is
> > + useful when clients are on a case-insensitive filesystem, which
> > + will cause errors when given refs which differ only in case.
>
> Shouldn't this better be named 'receive.denyCaseCloneRefs'?
Yes. I'll fix that.
> How about 'denyCaseInsensitiveRefs', 'denyIgnoreCaseRefs'?
I don't love these, because it's not the case-insensitivity that's being
denied but the duplication.
> Is this entry really so important that it must be the first in the list of
> receive.deny* list, which is not alphabetically sorted?
I think the list should be sorted alphabetically, so that we don't have
to worry about what is most important.
<snip issues that I'll fix when I reroll>
> BTW, on a case-insensitive file system, is there not a chance that 'git
> rev-parse CaseClone' succeeds even though the ref is stored in
> victim/.git/refs/heads/caseclone? Perhaps you should inspect the output of
> 'git for-each-ref' for the expected result? (Mental note: At least a
> case-preserving file system is required to run the test.)
I'll look into that and fix if necessary. Thanks.
<snip more issues that I'll fix when I reroll>
prev parent reply other threads:[~2014-06-04 17:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-04 3:13 [PATCH v2] receive-pack: optionally deny case clone refs David Turner
2014-06-04 6:06 ` Johannes Sixt
2014-06-04 17:24 ` David Turner [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=1401902684.18134.144.camel@stross \
--to=dturner@twopensource.com \
--cc=dturner@twitter.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=j.sixt@viscovery.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).