Use rev-list for tags

This commit is contained in:
Luke Tomlinson
2023-05-30 19:07:40 +00:00
parent f095bcc56b
commit 719fedec20
3 changed files with 26 additions and 2 deletions

View File

@@ -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