1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.deduceDefaultBase = void 0;
|
4 | const child_process_1 = require("child_process");
|
5 | function deduceDefaultBase() {
|
6 | const nxDefaultBase = 'main';
|
7 | try {
|
8 | return ((0, child_process_1.execSync)('git config --get init.defaultBranch').toString().trim() ||
|
9 | nxDefaultBase);
|
10 | }
|
11 | catch (_a) {
|
12 | return nxDefaultBase;
|
13 | }
|
14 | }
|
15 | exports.deduceDefaultBase = deduceDefaultBase;
|
16 | //# sourceMappingURL=default-base.js.map |
\ | No newline at end of file |