Error on pull when config submodule.recurse set to true
What steps will reproduce the problem?
- Open a git bash window in the repository tree and type
git config submodule.recurse true
- Use TortoiseGit to do a pull operation.
What is the expected output? What do you see instead?
I expect to have Tortoise pull the branch and then automatically update the submodules. Instead, after the pull operation, the TortoiseGit progress window shows the usage information, as if I had typed an invalid option to git submodule
. The output is below (I have removed the output from pull up to the error)
Fetching submodule *path-to-submodule*
From *url-to-submodule*
= [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>...]
git did not exit cleanly (exit code 1) (6391 ms @ 30/05/2018 15:37:28)
What version of TortoiseGit and Git are you using? On what operating system?
- OS: Windows 10 Pro 64-bit - also seen on Windows 7 32-bit.
- Git: 2.17.1.windows.2 (64-bit but also seen on 32 bit).
- Tortoise: 2.6.1.0 (20180510-e5820cb5) - also seen on v2.6.0.
I believe the submodule.recurse
option has been in git since v2.14.
Please provide any additional information below.
With this config option enabled, issuing a git pull
command from a git-bash command line works as expected, including updating the submodules without error.