mirror of
https://github.com/actions/checkout.git
synced 2025-09-14 11:42:20 +08:00
Set initial-branch (#427)
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
6
dist/index.js
vendored
6
dist/index.js
vendored
@@ -670,7 +670,11 @@ class GitCommandManager {
|
||||
}
|
||||
init() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
yield this.execGit(['init', this.workingDirectory]);
|
||||
yield this.execGit([
|
||||
'init',
|
||||
'--initial-branch=silence_warning_about_default_branch',
|
||||
this.workingDirectory
|
||||
]);
|
||||
});
|
||||
}
|
||||
isDetached() {
|
||||
|
Reference in New Issue
Block a user