mam 1.11.397 → 1.11.399
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 +3 -3
- package/node.js.map +1 -1
- package/node.mjs +3 -3
- package/node.test.js +84 -9
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.js
CHANGED
|
@@ -5430,15 +5430,15 @@ var $;
|
|
|
5430
5430
|
}
|
|
5431
5431
|
}
|
|
5432
5432
|
gitVersion() {
|
|
5433
|
-
return this.$.$mol_run({ command: 'git version', dir: '.' }).stdout.toString().trim().match(/.*\s+([\d\.]+)
|
|
5433
|
+
return this.$.$mol_run({ command: 'git version', dir: '.' }).stdout.toString().trim().match(/.*\s+([\d\.]+\d+)/)?.[1] ?? '';
|
|
5434
5434
|
}
|
|
5435
5435
|
gitDeepenSupported() {
|
|
5436
5436
|
return $mol_compare_text()(this.gitVersion(), '2.42.0') >= 0;
|
|
5437
5437
|
}
|
|
5438
5438
|
gitPull(path) {
|
|
5439
5439
|
const args = [];
|
|
5440
|
-
if (!this.interactive()) {
|
|
5441
|
-
args.push(
|
|
5440
|
+
if (!this.interactive() && this.gitDeepenSupported()) {
|
|
5441
|
+
args.push('--deepen=1');
|
|
5442
5442
|
}
|
|
5443
5443
|
return this.run_safe({ command: ['git', 'pull', ...args], dir: path });
|
|
5444
5444
|
}
|