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

Bug with Git submodules and submodule.recurse setting

From
JKJochen Kühner <jochen.kuehner@gmx.de>
Date
Aug 14, 2018, 17:54 UTC
Message-ID
<929572FA-6B1D-4EC7-825B-93B96053A82C@gmx.de>
If I set 
 
git config --global submodule.recurse true
and run git via:
 
git pull --progress -v --no-rebase "origin"
The command will fail with following output (Errorlevel is 1)
 
Fetching submodule submodules/tstemplates
From http://10.0.102.194:7990/scm/mcc/tstemplates
= [up to date]      feature/robin -> origin/feature/robin
= [up to date]      master        -> origin/master
Already up to date.
usage: git submodule [--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <repository> [<path>]
   or: git submodule [--quiet] status [--cached] [--recursive] [--] [<path>...]
   or: git submodule [--quiet] init [--] [<path>...]
   or: git submodule [--quiet] deinit [-f|--force] (--all| [--] <path>...)
   or: git submodule [--quiet] update [--init] [--remote] [-N|--no-fetch] [-f|--force] [--checkout|--merge|--rebase] [--[no-]recommend-shallow] [--reference <repository>] [--recursive] [--] [<path>...]
   or: git submodule [--quiet] summary [--cached|--files] [--summary-limit <n>] [commit] [--] [<path>...]
   or: git submodule [--quiet] foreach [--recursive] <command>
   or: git submodule [--quiet] sync [--recursive] [--] [<path>...]
   or: git submodule [--quiet] absorbgitdirs [--] [<path>...]
 
seams that the “verbose” parameter “-v” is also sent to “git submodules” wich does not support it.
 
If I remove “-v” it will work.
 
Problem is, I use TortoiseGit, wich will automatically create this command!
 
Next: Stefan Beller
Message 1 of 5 in “Bug with Git submodules and submodule.recurse setting”
  1. Jochen KühnerAug 14, 2018
  2. git-submodule.sh: accept verbose flag in cmd_update to be non-quietStefan Beller, Aug 14, 2018
  3. Jonathan NiederAug 14, 2018
  4. Aw: [PATCH] git-submodule.sh: accept verbose flag in cmd_update to be non-quietJochen Kühner, Aug 15, 2018
  5. Stefan BellerAug 15, 2018

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.