git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael J Gruber <git@drmicha.warpmail.net>
To: Stefan Naewe <stefan.naewe@atlas-elektronik.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>,
	Sverre Rabbelier <srabbelier@gmail.com>
Subject: Re: git clone NonExistentLocation
Date: Thu, 17 Feb 2011 13:59:55 +0100	[thread overview]
Message-ID: <4D5D1BCB.3010003@drmicha.warpmail.net> (raw)
In-Reply-To: <4D5D1A04.4090107@atlas-elektronik.com>

Stefan Naewe venit, vidit, dixit 17.02.2011 13:52:
> On 2/17/2011 1:39 PM, Michael J Gruber wrote:
>>
>> It is useful, and it even gives you a warning that it still might not be
>> what you intended. Would be funny if it were accidental. Indeed, a git
>> "log -S" on that warning reveals that it was introduced intentionally in
>>
>> 86ac751 (Allow cloning an empty repository, 2009-01-23)
> 
> OK. But that's about 'cloning an empty repository'.
> 'NonExistentLocation' is not empty initially - it simply does
> not exist.
> 
> Contrast that to 'git clone http://url.does.not.exist'. You don't
> get an empty repository in 'url.does.not.exist' after running that.

OK, the transport layer errors out in that case.

Rereading Sverre's commit message, I'm still not sure whether this case
was intended or not. The test case covers existing empty repos only. So
I'm cc'ing him and holding back by documentation patch.

Sverre, with your 86ac751, the following two are equivalent (modulo a
warning) on a nonexisting dir:

git clone dir
git init dir

Is that intentional?

Michael

  reply	other threads:[~2011-02-17 13:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17  9:01 git clone NonExistentLocation Stefan Naewe
2011-02-17 12:39 ` Michael J Gruber
2011-02-17 12:52   ` Stefan Naewe
2011-02-17 12:59     ` Michael J Gruber [this message]
2011-02-17 14:03       ` Sverre Rabbelier
2011-02-17 16:53         ` Michael J Gruber
2011-02-18  4:01           ` Jeff King
2011-02-18  6:02             ` Junio C Hamano
2011-02-18  6:11               ` Jeff King
2011-02-18 10:16               ` Sverre Rabbelier

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=4D5D1BCB.3010003@drmicha.warpmail.net \
    --to=git@drmicha.warpmail.net \
    --cc=git@vger.kernel.org \
    --cc=srabbelier@gmail.com \
    --cc=stefan.naewe@atlas-elektronik.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).