mirror of
https://github.com/actions/checkout.git
synced 2026-02-09 12:56:23 +03:00
Use rev-list for tags
This commit is contained in:
@@ -167,7 +167,7 @@ export async function testRef(
|
||||
else if (upperRef.startsWith('REFS/TAGS/')) {
|
||||
const tagName = ref.substring('refs/tags/'.length)
|
||||
return (
|
||||
(await git.tagExists(tagName)) && commit === (await git.revParse(ref))
|
||||
(await git.tagExists(tagName)) && commit === (await git.revList(ref, 1))
|
||||
)
|
||||
}
|
||||
// Unexpected
|
||||
|
||||
Reference in New Issue
Block a user