{"thread":{"id":"13064","subject":"url.<base>.insteadOf bugs","startedAt":"2008-04-11T13:59:04Z","lastAt":"2008-04-11T20:31:15Z","messageCount":2,"participants":["Eric Blake","Daniel Barkalow"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"74134","messageId":"loom.20080411T134849-798@post.gmane.org","threadId":"13064","inReplyTo":null,"subject":"url.<base>.insteadOf bugs","fromName":"Eric Blake","fromEmail":"ebb9@byu.net","sentAt":"2008-04-11T13:59:04Z","receivedAt":"2008-04-11T13:59:04Z","isPatch":false,"sender":{"key":"eblake@redhat.com","avatar":"https://avatars.githubusercontent.com/u/32933908?v=4"},"body":"I just upgraded to git 1.5.5, and decided to try out the new \nurl.<base>.insteadOf config option, to save me typing when pulling from \ngit.sv.gnu.org (and so that I can type the same url whether I'm at home and can \nuse git://, or when I'm at work and behind a stupid firewall where I must use \nhttp://).  It has a couple of bugs:\n\nFirst, it appears to have an off-by-one bug.\n\n$ git --version\ngit version 1.5.5\n$ mkdir bison\n$ cd bison\n$ git init\nInitialized empty Git repository in .git/\n$ git config url.http://git.sv.gnu.org/r/.insteadOf gnu:\n$ git fetch gnu:bison.git master\nfatal: I don't handle protocol 'ttp'\n$ git config --unset url.http://git.sv.gnu.org/r/.insteadOf     \n$ git config --global 'url. http://git.sv.gnu.org/r/.insteadOf' gnu:\n$ git fetch gnu:bison.git master\nGetting alternates list for http://git.sv.gnu.org/r/bison.git\n...\n\nSecond, 'git clone --help' documents that it uses this config option, but it \ndoesn't:\n\n$ cd ..\n$ rm -Rf bison\n$ git clone gnu:bison.git\nInitialized empty Git repository in /home/eblake/bison/.git/\nssh: Could not resolve hostname gnu: no address associated with name\nfatal: The remote end hung up unexpectedly\nfetch-pack from 'gnu:bison.git' failed.\n\n-- \nEric Blake\n"},{"id":"74142","messageId":"alpine.LNX.1.00.0804111626210.19665@iabervon.org","threadId":"13064","inReplyTo":"loom.20080411T134849-798@post.gmane.org","subject":"Re: url.<base>.insteadOf bugs","fromName":"Daniel Barkalow","fromEmail":"barkalow@iabervon.org","sentAt":"2008-04-11T20:31:15Z","receivedAt":"2008-04-11T20:31:15Z","isPatch":false,"sender":{"key":"barkalow@iabervon.org","avatar":"https://avatars.githubusercontent.com/u/55364219?v=4"},"body":"On Fri, 11 Apr 2008, Eric Blake wrote:\n\n> I just upgraded to git 1.5.5, and decided to try out the new \n> url.<base>.insteadOf config option, to save me typing when pulling from \n> git.sv.gnu.org (and so that I can type the same url whether I'm at home and can \n> use git://, or when I'm at work and behind a stupid firewall where I must use \n> http://).  It has a couple of bugs:\n> \n> First, it appears to have an off-by-one bug.\n> \n> $ git --version\n> git version 1.5.5\n> $ mkdir bison\n> $ cd bison\n> $ git init\n> Initialized empty Git repository in .git/\n> $ git config url.http://git.sv.gnu.org/r/.insteadOf gnu:\n> $ git fetch gnu:bison.git master\n> fatal: I don't handle protocol 'ttp'\n> $ git config --unset url.http://git.sv.gnu.org/r/.insteadOf     \n> $ git config --global 'url. http://git.sv.gnu.org/r/.insteadOf' gnu:\n> $ git fetch gnu:bison.git master\n> Getting alternates list for http://git.sv.gnu.org/r/bison.git\n> ...\n\nThat's weird; I'll check it out. Beats me how I managed to get an \noff-by-one error on that end of the string.\n\n> Second, 'git clone --help' documents that it uses this config option, but it \n> doesn't:\n> \n> $ cd ..\n> $ rm -Rf bison\n> $ git clone gnu:bison.git\n> Initialized empty Git repository in /home/eblake/bison/.git/\n> ssh: Could not resolve hostname gnu: no address associated with name\n> fatal: The remote end hung up unexpectedly\n> fetch-pack from 'gnu:bison.git' failed.\n\nThe documentation is a bit overly optimistic here. The C version of clone \nwill support it, but we're currently still using the shell version which \nis the last thing (AFAIK) using the old shell parsing.\n\n\t-Daniel\n*This .sig left intentionally blank*\n"}]}