# Submodule and proxy server.

2 messages from 2015-06-22 to 2015-06-22. Participants: Jamie Archibald, Johannes Löthberg.
Thread: https://gitlist.dev/t/39694

## Jamie Archibald, 2015-06-22 14:46

Subject: Submodule and proxy server.
Message-ID: <CACnwYoPvcyERhtmqGeF4MJBuwCYX=sabUA5D=XVtT33vXe4HFQ@mail.gmail.com>
URL: https://gitlist.dev/e/CACnwYoPvcyERhtmqGeF4MJBuwCYX%3DsabUA5D%3DXVtT33vXe4HFQ%40mail.gmail.com

```
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, 2015-06-22 15:43

Subject: Re: Submodule and proxy server.
Message-ID: <20150622154321.GA13063@leeloo.kyriasis.com>
URL: https://gitlist.dev/e/20150622154321.GA13063%40leeloo.kyriasis.com
In-Reply-To: <CACnwYoPvcyERhtmqGeF4MJBuwCYX=sabUA5D=XVtT33vXe4HFQ@mail.gmail.com>

```
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/

```
