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

submodule update and core.askpass

From
DNDmitry Neverov <dmitry.neverov@jetbrains.com>
Date
Nov 16, 2013, 21:24 UTC
Message-ID
<m28uwoxcoh.fsf@nds-macbook-air.labs.intellij.net>
Hi,

it seems like "git submodule update" command doesn't respect the core.askpass option specified in a command line. I have a repository with a submodule, I serve it over http which requires an authorization and both main repository and submodule require the same credentials. I run the following commands (pass.sh is a script which prints a password to stdout):

git -c core.askpass=pass.sh clone main-repo cd main-repo git submodule init git submodule sync git -c core.askpass=pass.sh submodule update

The last command asks for a password interactively. 

I've run bisect, it seems like it started failing from commit be8779f7ac9a3be9aa783df008d59082f4054f67. I've checked: submodule update works fine in 1.8.5.rc2 with removed call to clear_local_git_env.

Is there any way to make git submodule update respect core.askpass option, so one can use it in scripts?

-- 
Dmitry Neverov
Next: Thomas Rast
Message 1 of 4 in “submodule update and core.askpass”
  1. Dmitry NeverovNov 16, 2013
  2. Thomas RastNov 16, 2013
  3. Jens LehmannNov 16, 2013
  4. Dmitry NeverovNov 22, 2013

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.