From: David Turner <dturner@twopensource.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git mailing list <git@vger.kernel.org>
Subject: Re: RFC: optionally reject case-clone branch names
Date: Wed, 28 May 2014 13:56:31 -0400 [thread overview]
Message-ID: <1401299791.18134.74.camel@stross> (raw)
In-Reply-To: <xmqq7g55esg5.fsf@gitster.dls.corp.google.com>
On Wed, 2014-05-28 at 10:14 -0700, Junio C Hamano wrote:
> David Turner <dturner@twopensource.com> writes:
>
> > RFC follows:
> >
> > 1. On a case-insensitive server, git receive-pack ought to always reject
> > branches which are same-but-for-case of existing branches.
> > 2. On a case-sensitive server, the same rule by default, with an option
> > to allow the old behavior.
> >
> > Let me know if, should I write these patches, they would be likely to be
> > accepted.
>
> There is another a lot simpler possiblity, no?
>
> 3. On any server whose administrator chooses to enforce "one case
> variant only" rule, install a pre-receive hook that enforces the
> rule.
The reason I discovered this issue is that a user came to me to complain
that suddenly their pulls were failing. Then I had to track down what
the actual problem was (a colleague actually pointed it out to me).
We could add some hooks, but we have a lot of repos, some of which
already have unique hooks that we would have to edit. And this approach
wouldn't help the next person who gets into this situation, who would
have to again figure out what went wrong, and add the appropriate hook.
Basically, I'm trying to take a poka-yoke approach. Does this seem
reasonable?
next prev parent reply other threads:[~2014-05-28 17:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-27 22:56 RFC: optionally reject case-clone branch names David Turner
2014-05-28 17:14 ` Junio C Hamano
2014-05-28 17:56 ` David Turner [this message]
2014-05-28 21:58 ` Junio C Hamano
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=1401299791.18134.74.camel@stross \
--to=dturner@twopensource.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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 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).