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

Submodule and proxy server.

From
JAJamie Archibald <jamie3@gmail.com>
Date
Jun 22, 2015, 14:46 UTC
Message-ID
<CACnwYoPvcyERhtmqGeF4MJBuwCYX=sabUA5D=XVtT33vXe4HFQ@mail.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
Next: Johannes Löthberg
Message 1 of 2 in “Submodule and proxy server.”
  1. Jamie ArchibaldJun 22, 2015
  2. Johannes LöthbergJun 22, 2015

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.