mirror of
https://github.com/actions/checkout.git
synced 2026-03-04 08:41:01 +08:00
Compare commits
2 Commits
67702be836
...
97284c68a8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97284c68a8 | ||
|
|
dad69cab55 |
6
dist/index.js
vendored
6
dist/index.js
vendored
@ -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() {
|
||||
|
||||
@ -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> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user