mam 1.11.167 → 1.11.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node.js +2 -2
- package/node.js.map +1 -1
- package/node.mjs +2 -2
- package/node.test.js +2 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.js
CHANGED
|
@@ -5255,6 +5255,8 @@ var $;
|
|
|
5255
5255
|
return this.$.$mol_exec(path, 'git', ...args);
|
|
5256
5256
|
}
|
|
5257
5257
|
gitSubmoduleDirs() {
|
|
5258
|
+
if (!this.is_root_git())
|
|
5259
|
+
return new Set();
|
|
5258
5260
|
const root = this.root().path();
|
|
5259
5261
|
const output = this.$.$mol_exec(root, 'git', 'submodule', 'status', '--recursive').stdout.toString();
|
|
5260
5262
|
const dirs = output.trim()
|
|
@@ -5269,8 +5271,6 @@ var $;
|
|
|
5269
5271
|
return git_dir.exists() && git_dir.type() === 'dir';
|
|
5270
5272
|
}
|
|
5271
5273
|
modEnsure(path) {
|
|
5272
|
-
if (!this.is_root_git())
|
|
5273
|
-
return false;
|
|
5274
5274
|
var mod = $mol_file.absolute(path);
|
|
5275
5275
|
var parent = mod.parent();
|
|
5276
5276
|
if (mod !== this.root())
|