From: Junio C Hamano <gitster@pobox.com>
To: "David ‘Bombe’ Roden" <bombe@pterodactylus.net>
Cc: git@vger.kernel.org
Subject: Re: [BUG] Git looks for repository in wrong directory
Date: Wed, 02 Jul 2008 17:31:35 -0700 [thread overview]
Message-ID: <7vtzf76c60.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <200807030216.28921.bombe@pterodactylus.net> (David ‘. Bombe’ Roden's message of "Thu, 3 Jul 2008 02:16:26 +0200")
David ‘Bombe’ Roden <bombe@pterodactylus.net> writes:
> git clone r1 r1.git
> cd r1
> echo b > b
> git add b
> git commit -m "b"
> cd ..
> git ls-remote r1
> git ls-remote r1/.
>
> shows that Git searches for a repository in the wrong place. I think the last
> two commands should output exactly the same but "git ls-remote r1" actually
> lists the contents of "r1.git". Is that a bug or is this (extremely
> confusing) behaviour intended?
This is age old usability feature that lets you say "ls-remote r1" even
when you do *not* have "r1.git", and is not limited to the local file
transport but also applicable when peeking a remote repository over the
native transport.
If you have both, you already have found the way to disambiguate ;-)
next prev parent reply other threads:[~2008-07-03 0:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-03 0:16 [BUG] Git looks for repository in wrong directory David ‘Bombe’ Roden
2008-07-03 0:31 ` Junio C Hamano [this message]
2008-07-03 1:05 ` David ‘Bombe’ Roden
2008-07-03 19:28 ` 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=7vtzf76c60.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=bombe@pterodactylus.net \
--cc=git@vger.kernel.org \
/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).