diff --git a/lib/scm/git.js b/lib/scm/git.js index 8de94ad..f9fcf62 100644 --- a/lib/scm/git.js +++ b/lib/scm/git.js @@ -172,5 +172,14 @@ Scm.prototype.getChanges = function(rev1, rev2, callback) { }; Scm.prototype.update = function(rev, callback) { - this.run({cmd: 'git', args: ['checkout', '-f', rev]}, callback); + var self = this; + Steppy( + function() { + self.run({cmd: 'git', args: ['checkout', '-f', rev]}, this.slot()); + }, + function() { + self.run({cmd: 'git', args: ['submodule', 'update']}, this.slot()); + }, + callback + ); };