{"thread":{"id":"19434","subject":"Re: git doesn't append \".git\" to url WAS [PATCH 0/3] http*: refactor fetching code (v2)","startedAt":"2009-05-21T14:17:33Z","lastAt":"2009-05-21T15:39:15Z","messageCount":3,"participants":["Tay Ray Chuan","Tony Finch"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"114418","messageId":"be6fef0d0905210717j174499f5k4740dc2f821bec62@mail.gmail.com","threadId":"19434","inReplyTo":null,"subject":"Re: git doesn't append \".git\" to url WAS [PATCH 0/3] http*: refactor fetching code (v2)","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2009-05-21T14:17:33Z","receivedAt":"2009-05-21T14:17:33Z","isPatch":true,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nOn Wed, May 20, 2009 at 10:03 PM, Tony Finch <dot@dotat.at> wrote:\n> On this topic, some of my friends have complained that git doesn't\n> automatically try appending .git to a URL when it fails to find a\n> bare git repository on the server.\n\nare your friends hosting non-bare repositories directly (with\nchecked-out copies)? In the first place, this isn't a good idea;\nplease refer to\n\n http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#def_bare_repository\n\nand\n\n http://kerneltrap.org/mailarchive/git/2009/1/30/4852194\n\nfor reasons why.\n\n-- \nCheers,\nRay Chuan\n"},{"id":"114421","messageId":"alpine.LSU.2.00.0905211518430.23333@hermes-2.csi.cam.ac.uk","threadId":"19434","inReplyTo":"be6fef0d0905210717j174499f5k4740dc2f821bec62@mail.gmail.com","subject":"Re: git doesn't append \".git\" to url WAS [PATCH 0/3] http*: refactor fetching code (v2)","fromName":"Tony Finch","fromEmail":"dot@dotat.at","sentAt":"2009-05-21T14:29:48Z","receivedAt":"2009-05-21T14:29:48Z","isPatch":true,"sender":{"key":"dot@dotat.at","avatar":"https://avatars.githubusercontent.com/u/68429?v=4"},"body":"On Thu, 21 May 2009, Tay Ray Chuan wrote:\n>\n> are your friends hosting non-bare repositories directly (with\n> checked-out copies)? In the first place, this isn't a good idea;\n\nYes, and yes we all know that this is discouraged.\n\nThere are two bugs. Git's error message is misleading: the problem is\nnothing to do with running git update-server-info (see below). Its\nbehaviour is inconsistent: git retries after appending .git if you are\nfetching from a local repository or ssh:// or git:// URLs but not for\nhttp:// URLs.\n\n$ git clone http://www.greenend.org.uk/rjk/\nInitialized empty Git repository in /tmp/rjk/.git/\nfatal: http://www.greenend.org.uk/rjk//info/refs not found: did you run git update-server-info on the server?\n\nActually maybe there's a third bug: it says it has initialized\na repository but it removes it again if the clone fails.\n\nTony.\n-- \nf.anthony.n.finch  <dot@dotat.at>  http://dotat.at/\nGERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.\nMODERATE OR GOOD.\n"},{"id":"114427","messageId":"be6fef0d0905210839i1789dc33uc760ab7779e68b51@mail.gmail.com","threadId":"19434","inReplyTo":"alpine.LSU.2.00.0905211518430.23333@hermes-2.csi.cam.ac.uk","subject":"Re: git doesn't append \".git\" to url WAS [PATCH 0/3] http*: refactor fetching code (v2)","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2009-05-21T15:39:15Z","receivedAt":"2009-05-21T15:39:15Z","isPatch":true,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nOn Thu, May 21, 2009 at 10:29 PM, Tony Finch <dot@dotat.at> wrote:\n> ...Git's error message is misleading: the problem is\n> nothing to do with running git update-server-info (see below).\n\nyou're right. Perhaps git should check if the repo (on http://) exists\nfirst, before printing that message.\n\n> Its\n> behaviour is inconsistent: git retries after appending .git if you are\n> fetching from a local repository or ssh:// or git:// URLs but not for\n> http:// URLs.\n\nthat's true too.\n\n> Actually maybe there's a third bug: it says it has initialized\n> a repository but it removes it again if the clone fails.\n\nwell, if the clone fails, then the cloned repo would be in an\nincomplete state, so removing it isn't that bad an idea. Perhaps an\noption could be made to prevents clone from doing this, so that one\ncould try restarting the clone.\n\n-- \nCheers,\nRay Chuan\n"}]}