update submodule after git checkout

This commit is contained in:
Vladimir Polyakov 2016-03-02 15:03:23 +03:00
parent e396a9f214
commit 607519b48a

View File

@ -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
);
};