mirror of
https://code.forgejo.org/actions/checkout.git
synced 2026-05-28 15:06:30 +00:00
Merge 55ad59dfaa into 900f2210b1
This commit is contained in:
commit
f37edd6984
4 changed files with 11 additions and 11 deletions
|
|
@ -336,7 +336,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