Search code examples
gitrecursiongit-submodulessmartgit

How to specify --recurse-submodules strategy in SmartGit for git fetch


SmartGit is explicitly using the submodule update strategy no. How can I overwrite it to use the strategy on-demand?

Executed command by SmartGit: git.exe fetch --progress --prune --recurse-submodules=no origin

I tried to overwrite the fetch command with an alias: git config --global alias.fetch 'git fetch --recurse-submodules=on-demand'

I see no changes in SmartGit's log window.


Solution

  • As of SmartGit 17, it's not possible to change --recurse-submodules= strategy. However, in the Repository|Settings, on Pull tab, you can configure to Always fetch new commits, tags and branches from submodule.