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

url.<base>.insteadOf bugs

From
Eric Blake <ebb9@byu.net>
Date
Apr 11, 2008, 13:59 UTC
Message-ID
<loom.20080411T134849-798@post.gmane.org>

I just upgraded to git 1.5.5, and decided to try out the new url.<base>.insteadOf config option, to save me typing when pulling from git.sv.gnu.org (and so that I can type the same url whether I'm at home and can use git://, or when I'm at work and behind a stupid firewall where I must use http://). It has a couple of bugs:

First, it appears to have an off-by-one bug.

$ git --version git version 1.5.5 $ mkdir bison $ cd bison $ git init Initialized empty Git repository in .git/ $ git config url.http://git.sv.gnu.org/r/.insteadOf gnu: $ git fetch gnu:bison.git master fatal: I don't handle protocol 'ttp' $ git config --unset url.http://git.sv.gnu.org/r/.insteadOf $ git config --global 'url. http://git.sv.gnu.org/r/.insteadOf' gnu: $ git fetch gnu:bison.git master Getting alternates list for http://git.sv.gnu.org/r/bison.git ...

Second, 'git clone --help' documents that it uses this config option, but it doesn't:

$ cd .. $ rm -Rf bison $ git clone gnu:bison.git Initialized empty Git repository in /home/eblake/bison/.git/ ssh: Could not resolve hostname gnu: no address associated with name fatal: The remote end hung up unexpectedly fetch-pack from 'gnu:bison.git' failed.

-- 
Eric Blake
Next: Daniel Barkalow
Message 1 of 2 in “url.<base>.insteadOf bugs”
  1. Eric BlakeApr 11, 2008
  2. Daniel BarkalowApr 11, 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.