mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-02-04 08:20:15 +00:00
update submodule after git checkout
This commit is contained in:
parent
e396a9f214
commit
607519b48a
@ -172,5 +172,14 @@ Scm.prototype.getChanges = function(rev1, rev2, callback) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Scm.prototype.update = function(rev, 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
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user