1
0
mirror of https://github.com/actions/checkout.git synced 2026-03-04 08:41:01 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Josh Soref
97284c68a8
Merge dad69cab55 into 8e8c483db8 2025-12-03 04:42:41 +08:00
Josh Soref
dad69cab55 Set initial-branch (#427)
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2025-08-03 09:40:39 -04:00
2 changed files with 10 additions and 2 deletions

6
dist/index.js vendored
View File

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

View File

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