|
|
@ -5482,6 +5482,7 @@ class GitCommandManager {
|
|
|
|
submoduleUpdate(fetchDepth, recursive) {
|
|
|
|
submoduleUpdate(fetchDepth, recursive) {
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
const args = ['-c', 'protocol.version=2'];
|
|
|
|
const args = ['-c', 'protocol.version=2'];
|
|
|
|
|
|
|
|
// ?
|
|
|
|
args.push('submodule', 'update', '--init', '--force');
|
|
|
|
args.push('submodule', 'update', '--init', '--force');
|
|
|
|
if (fetchDepth > 0) {
|
|
|
|
if (fetchDepth > 0) {
|
|
|
|
args.push(`--depth=${fetchDepth}`);
|
|
|
|
args.push(`--depth=${fetchDepth}`);
|
|
|
|