alcatraz / Alcatraz

Package manager for Xcode
alcatraz.io
MIT License
9.87k stars 1.15k forks source link

Update git submodules when updating plugins #484

Open guillaumealgis opened 8 years ago

guillaumealgis commented 8 years ago

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.

This is also related to https://github.com/alcatraz/Alcatraz/pull/465, which fixed the initial clone for plugins using submodules.

Changes:

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 :)