1
0
mirror of https://github.com/actions/checkout.git synced 2026-06-17 17:24:00 +08:00
This commit is contained in:
Mark Vander Stel
2025-08-15 02:48:30 +02:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -171,7 +171,8 @@ 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.revParse(`${ref}^{commit}`))
)
}
// Unexpected