1
0
mirror of https://github.com/actions/checkout.git synced 2026-06-26 18:03:53 +08:00
This commit is contained in:
Josh Soref
2025-11-20 13:07:48 -05:00
committed by GitHub
2 changed files with 10 additions and 2 deletions

6
dist/index.js vendored
View File

@@ -893,7 +893,11 @@ class GitCommandManager {
} }
init() { init() {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
yield this.execGit(['init', this.workingDirectory]); yield this.execGit([
'init',
'--initial-branch=placeholder',
this.workingDirectory
]);
}); });
} }
isDetached() { isDetached() {

View File

@@ -367,7 +367,11 @@ class GitCommandManager {
} }
async init(): Promise<void> { async init(): Promise<void> {
await this.execGit(['init', this.workingDirectory]) await this.execGit([
'init',
'--initial-branch=placeholder',
this.workingDirectory
])
} }
async isDetached(): Promise<boolean> { async isDetached(): Promise<boolean> {