threads / discuss / 39694

Submodule and proxy server.

Subject: Submodule and proxy server.

## tl;dr

2 messages between Jun 22, 2015 and Jun 22, 2015.

replies: 1people: 2as markdown or json

Jamie Archibald· Jun 22, 2015, 14:46 UTC · lore
I am behind a proxy at work and I've setup a git repo with a submodule.
Here are the commands I'm executing.

$ mkdir MyProject $ cd MyProject $ git init $ git remote add origin http://path/to/repo/MyProject.git $ git config —add remote.origin.proxy "" $ git pull origin master

MyProject has a submodule called MySubmodule

The above commands work and have no problem pulling down the files to local. The issue occurs when I attempt to update the submodule

$ git submodule init

Submodule 'MySubmodule' (http://path/to/submodule/MySubmodule.git) registered for path 'MySubmodule'

$ git submodule update
Cloning into 'MySubmodule'...

fatal: unable to access 'http://http://path/to/submodule/MySubmodule.git/': The requested URL returned error: 502

Clone of 'http://path/to/submodule/MySubmodule' into sub module path 'MySubmodule' failed

It seems I am getting a 502. I have a funny feeling that perhaps the submodule command is not inheriting the proxy settings I've configured above.

Any help would be appreciated.
GIT rocks!
-- 
Jamie
Johannes Löthberg· Jun 22, 2015, 15:43 UTC · re: Jamie Archibald · lore

Re: Submodule and proxy server.

On 22/06, Jamie Archibald wrote:
>fatal: unable to access
>'http://http://path/to/submodule/MySubmodule.git/': The requested URL
>returned error: 502
>
Did you copy this error verbatim?
-- 
Sincerely,
  Johannes Löthberg
  PGP Key ID: 0x50FB9B273A9D0BB5
  https://theos.kyriasis.com/~kyrias/

← back to recent threads