mirror of
https://github.com/actions/checkout.git
synced 2025-04-09 00:40:25 +02:00
Merge 9ec5884c0c408b3811d9d5f8cccf7315e31fdc64 into 85e6279cec87321a52edac9c87bce653a07cf6c2
This commit is contained in:
commit
9a47e21874
1
dist/index.js
vendored
1
dist/index.js
vendored
@ -711,6 +711,7 @@ class GitCommandManager {
|
|||||||
}
|
}
|
||||||
init() {
|
init() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
yield this.config('init.defaultBranch', 'main', true, true);
|
||||||
yield this.execGit(['init', this.workingDirectory]);
|
yield this.execGit(['init', this.workingDirectory]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -328,6 +328,7 @@ class GitCommandManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async init(): Promise<void> {
|
async init(): Promise<void> {
|
||||||
|
await this.config('init.defaultBranch', 'main', true, true)
|
||||||
await this.execGit(['init', this.workingDirectory])
|
await this.execGit(['init', this.workingDirectory])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user