As discussed in https://github.com/alcatraz/Alcatraz/issues/454, plugins using git submodules need to run git submodule update after a fetch to update their dependencies to the right commit.
git submodule update
Update the registered submodules to match what the superproject expects by cloning missing submodules and updating the working tree of the submodules.
As discussed in https://github.com/alcatraz/Alcatraz/issues/454, plugins using git submodules need to run
git submodule update
after afetch
to update their dependencies to the right commit.This is also related to https://github.com/alcatraz/Alcatraz/pull/465, which fixed the initial clone for plugins using submodules.
Changes:
--recurse-submodules=on-demand
to thefetch
command to recursively fetch submodules commits;git submodule update
after successfulgit fetch
andgit reset --hard
to make the submodules checkout the right commits.Note: Not a big fan of the pyramid-callbacks-style in
+[ATZGit updateLocalProject:revision:completion:]
, if you have a better idea, I'll take it :)