From 7e0f95e47a0fd8c9f9930b865ad5376b4ce1de3c Mon Sep 17 00:00:00 2001 From: Michael Schmidt Date: Tue, 11 Jul 2023 13:30:41 +0200 Subject: [PATCH] dfghdfghdfrgh --- .gitignore | 19 ++++++++++++++++++- dist/index.js | 1 + src/git-command-manager.ts | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8baa767..c4deaa7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,21 @@ __test__/_temp _temp/ lib/ -node_modules/ \ No newline at end of file +node_modules/ +/dist/fs-helper.d.ts +/dist/git-auth-helper.d.ts +/dist/git-command-manager.d.ts +/dist/git-directory-helper.d.ts +/dist/git-source-provider.d.ts +/dist/git-source-settings.d.ts +/dist/git-version.d.ts +/dist/github-api-helper.d.ts +/dist/input-helper.d.ts +/dist/main.d.ts +/dist/misc/generate-docs.d.ts +/dist/ref-helper.d.ts +/dist/regexp-helper.d.ts +/dist/retry-helper.d.ts +/dist/state-helper.d.ts +/dist/url-helper.d.ts +/dist/workflow-context-helper.d.ts diff --git a/dist/index.js b/dist/index.js index 9cefd4d..cf276ae 100644 --- a/dist/index.js +++ b/dist/index.js @@ -34393,6 +34393,7 @@ class GitCommandManager { } init() { return __awaiter(this, void 0, void 0, function* () { + yield this.execGit(['config', '--global', 'init.defaultBranch', 'main']); yield this.execGit(['init', this.workingDirectory]); }); } diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index 699a963..cd6ed49 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -231,6 +231,7 @@ class GitCommandManager { } async init(): Promise { + await this.execGit(['config', '--global', 'init.defaultBranch', 'main']) await this.execGit(['init', this.workingDirectory]) }