mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-08-23 15:30:49 +02:00
Merge 55ad59dfaa
into ff7abcd0c3
This commit is contained in:
commit
f7104c334f
4 changed files with 11 additions and 11 deletions
|
@ -314,7 +314,7 @@ class GitCommandManager {
|
|||
line = line.trim()
|
||||
if (line.startsWith('ref:') || line.endsWith('HEAD')) {
|
||||
return line
|
||||
.substr('ref:'.length, line.length - 'ref:'.length - 'HEAD'.length)
|
||||
.slice('ref:'.length, line.length - 'HEAD'.length)
|
||||
.trim()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue