mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-22 01:22:02 +03:00
.
This commit is contained in:
parent
d7ab4a7a3d
commit
1571d4fa58
2 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ class GitCommandManager {
|
|||
async isDetached(): Promise<boolean> {
|
||||
// Note, "branch --show-current" would be simpler but isn't available until Git 2.22
|
||||
const output = await this.execGit(
|
||||
['rev-parse', '--symbolic-full-name', 'HEAD'],
|
||||
['rev-parse', '--symbolic-full-name', '--verify', '--quiet', 'HEAD'],
|
||||
true
|
||||
)
|
||||
return !output.stdout.trim().startsWith('refs/heads/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue