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

Compare commits

..

2 Commits

Author SHA1 Message Date
Josh Soref
93d9fe3abc
Merge 401851faf5 into 8edcb1bdb4 2025-07-23 15:39:43 -04:00
Josh Soref
401851faf5 Set initial-branch (#427)
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2023-06-07 11:30:30 -04:00
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

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

View File

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