{"thread":{"id":"36612","subject":"Unexpected behavior using -c to pass url.<site>.insteadof","startedAt":"2014-05-08T22:35:26Z","lastAt":"2014-05-08T22:35:26Z","messageCount":1,"participants":["Eric Brunson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"241047","messageId":"536C06AE.1080103@brunson.com","threadId":"36612","inReplyTo":null,"subject":"Unexpected behavior using -c to pass url.<site>.insteadof","fromName":"Eric Brunson","fromEmail":"brunson@brunson.com","sentAt":"2014-05-08T22:35:26Z","receivedAt":"2014-05-08T22:35:26Z","isPatch":false,"sender":{"key":"brunson@brunson.com","avatar":null},"body":"Is this the expected operation using git -c to override gitconfig settings?\n\nThis is default behavior:\n\n     $ git ls-remote git://original.site/origin\n     fatal: unable to connect to original.site:\n\nThis is what I expected, override with an insteadof url using -c on the \ncommand line:\n\n     $ git -c \nurl.ssh://replace.site:1234/.insteadof=git://original.site/ ls-remote \ngit://original.site/origin\n     ssh: Could not resolve hostname replace.site: Name or service not known\n\nCreate a URL in ~/.gitconfig:\n\n     $ git config --global url.ssh://other.site/.insteadof \ngit://original.site/\n     $ cat ~/.gitconfig\n     [url \"ssh://other.site/\"]\n         insteadof = git://original.site/\n\nWorks as expected, correctly substitutes other.site for original.site:\n\n     $ git ls-remote git://original.site/origin\n     ssh: Could not resolve hostname other.site: Name or service not known\n\nThe same -c command as above doesn't override the ~/.gitconfig setting, \nstill substitutes other.site:\n\n     $ git -c \nurl.ssh://replace.site:1234/.insteadof=git://original.site/ ls-remote \ngit://original.site/origin\n     ssh: Could not resolve hostname other.site: Name or service not known\n\nI've also reproduced in git 1.9.0 and 2.0.0-rc2.\n\nAm I simply misunderstanding the documentation, it doesn't really \ndiscuss what should happen with multivar settings?\n\nThanks,\ne.\n"}]}