From: Junio C Hamano <gitster@pobox.com>
To: Joseph Chiu <joechiu@joechiu.com>
Cc: git@vger.kernel.org
Subject: Re: Git repository name-guessing corner case
Date: Mon, 11 Jun 2012 13:09:45 -0700 [thread overview]
Message-ID: <7vwr3d625y.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <1339442931056-7561236.post@n2.nabble.com> (Joseph Chiu's message of "Mon, 11 Jun 2012 12:28:51 -0700 (PDT)")
Joseph Chiu <joechiu@joechiu.com> writes:
> On the south machine, I first accidentally created the repo wizard.git.git
> (note the double .git), with ...
We have updated the logic around this area with b3256eb (standardize
and improve lookup rules for external local repos, 2012-02-02), and
this is part of v1.7.9.2 and later releases. The rule used to be
(1) check with "/.git" appended, to cover the case where you access
a repository with a working tree attached, (2) check with ".git"
appended, and then (3) check without anything appended. It was very
error prone to cause exactly the above kind of gotchas.
The updated rule checks with "/.git" first andthe next possibility
that is checked is the given name without modification, so if you
have both wizard.git and wizard.git.git (with or without working
tree):
accessing with this name ... will find this repository
wizard wizard.git
wizard.git wizard.git
wizard.git.git wizard.git.git
which should be much saner.
prev parent reply other threads:[~2012-06-11 20:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-11 19:28 Git repository name-guessing corner case Joseph Chiu
2012-06-11 20:09 ` Junio C Hamano [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=7vwr3d625y.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=joechiu@joechiu.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