{"thread":{"id":"39694","subject":"Submodule and proxy server.","startedAt":"2015-06-22T14:46:53Z","lastAt":"2015-06-22T15:43:21Z","messageCount":2,"participants":["Jamie Archibald","Johannes Löthberg"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"264539","messageId":"CACnwYoPvcyERhtmqGeF4MJBuwCYX=sabUA5D=XVtT33vXe4HFQ@mail.gmail.com","threadId":"39694","inReplyTo":null,"subject":"Submodule and proxy server.","fromName":"Jamie Archibald","fromEmail":"jamie3@gmail.com","sentAt":"2015-06-22T14:46:53Z","receivedAt":"2015-06-22T14:46:53Z","isPatch":false,"sender":{"key":"jamie3@gmail.com","avatar":null},"body":"I am behind a proxy at work and I've setup a git repo with a submodule.\n\n\nHere are the commands I'm executing.\n\n\n$ mkdir MyProject\n$ cd MyProject\n$ git init\n$ git remote add origin http://path/to/repo/MyProject.git\n$ git config —add remote.origin.proxy \"\"\n$ git pull origin master\n\n\nMyProject has a submodule called MySubmodule\n\nThe above commands work and have no problem pulling down the files to\nlocal. The issue occurs when I attempt to update the submodule\n\n$ git submodule init\n\nSubmodule 'MySubmodule' (http://path/to/submodule/MySubmodule.git)\nregistered for path 'MySubmodule'\n\n$ git submodule update\n\nCloning into 'MySubmodule'...\n\nfatal: unable to access\n'http://http://path/to/submodule/MySubmodule.git/': The requested URL\nreturned error: 502\n\nClone of 'http://path/to/submodule/MySubmodule' into sub module path\n'MySubmodule' failed\n\nIt seems I am getting a 502. I have a funny feeling that perhaps the\nsubmodule command is not inheriting the proxy settings I've configured\nabove.\n\nAny help would be appreciated.\n\nGIT rocks!\n\n\n-- \nJamie\n"},{"id":"264565","messageId":"20150622154321.GA13063@leeloo.kyriasis.com","threadId":"39694","inReplyTo":"CACnwYoPvcyERhtmqGeF4MJBuwCYX=sabUA5D=XVtT33vXe4HFQ@mail.gmail.com","subject":"Re: Submodule and proxy server.","fromName":"Johannes Löthberg","fromEmail":"johannes@kyriasis.com","sentAt":"2015-06-22T15:43:21Z","receivedAt":"2015-06-22T15:43:21Z","isPatch":false,"sender":{"key":"johannes@kyriasis.com","avatar":"https://gravatar.com/avatar/af2dea1b1759403329a1b7eaa28a07b5c5d1901e9f55723103d6324ffb7737ae?d=mp&s=160"},"body":"On 22/06, Jamie Archibald wrote:\n>fatal: unable to access\n>'http://http://path/to/submodule/MySubmodule.git/': The requested URL\n>returned error: 502\n>\n\nDid you copy this error verbatim?\n\n-- \nSincerely,\n  Johannes Löthberg\n  PGP Key ID: 0x50FB9B273A9D0BB5\n  https://theos.kyriasis.com/~kyrias/\n"}]}