Where is git submodule update in SourceTree? Where is git submodule update in SourceTree? git git

Where is git submodule update in SourceTree?


I couldn't find the answer myself, so I created a custom action. Go to Preferences, Custom Actions, and enter the following info:(This is on a Mac. Your path to the git executable may vary.)git submodule update custom action


Just double-click on the submodule or left-click and open the moduleenter image description here

Once in the submodule, the UI is like any git repo , press on pull/fetch to update to the header. And voila.


Here is the version:

enter image description here

This command assumes the location of your sh.exe - depending on how you setup SourceTree it could be somewhere else.

/c %LOCALAPPDATA%\Atlassian\SourceTree\git_local\bin\sh.exe --login -i -c "git submodule update"""

Not sure whether it is a bug - but in the version of Sourcetree I am using (v1.6.14.0) I found that having the extra pair of quotations "" on the end was required - otherwise an extra quotation exists and the unbalanced statement then causes sh to bark:

cmd "/c %LOCALAPPDATA%\Atlassian\SourceTree\git_local\bin\sh.exe --login -i -c "git submodule update""sh: unexpected EOF while looking for matching `"'sh: syntax error: unexpected end of fileCompleted with errors, see above.