git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [BUG] Git looks for repository in wrong directory

From
David ‘Bombe’ Roden <bombe@pterodactylus.net>
Date
Jul 3, 2008, 01:05 UTC
Message-ID
<200807030305.17767.bombe@pterodactylus.net>
In-Reply-To
<7vtzf76c60.fsf@gitster.siamese.dyndns.org>
On Thursday 03 July 2008 02:31:35 Junio C Hamano wrote:
> This is age old usability feature that lets you say "ls-remote r1" even
> when you do *not* have "r1.git"
Is it just me or does that sentence not make any sense at all? ;)

I mean, _of cource_ I want the contents of "r1" if I say "give me the contents of r1". I could understand if Git looked in "r1.git" if there was no "r1" but the way it is currently done is plain wrong. IMHO, of course.

> If you have both, you already have found the way to disambiguate ;-)

Yes, _now_ I know. In my opinion it’s very unintuitive and should be changed. And if—for some strange reason—this is to be kept as a compatibility feature it should at least be documented somewhere in large red blinking letters that under certain circumstances Git doesn’t care about the path you give it but simply chooses to look somewhere else. :)

	David
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “[BUG] Git looks for repository in wrong directory”
  1. David ‘Bombe’ RodenJul 3, 2008
  2. Junio C HamanoJul 3, 2008
  3. David ‘Bombe’ RodenJul 3, 2008
  4. Junio C HamanoJul 3, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.