Release v0.1.1

This commit is contained in:
nikit3s
2026-09-27 15:25:46 +03:00
parent 7ac8c78d8b
commit b2ae91b5b3
11 changed files with 315 additions and 91 deletions
+3 -2
View File
@@ -26,10 +26,11 @@ try {
}
$tag = 'v' + $Version
$tagCommit = & git rev-list -n 1 $tag 2>$null
& git show-ref --verify --quiet ("refs/tags/" + $tag)
if ($LASTEXITCODE -eq 0) {
$tagCommit = (& git rev-list -n 1 $tag).Trim()
$headCommit = (& git rev-parse HEAD).Trim()
if ($tagCommit.Trim() -ne $headCommit) {
if ($tagCommit -ne $headCommit) {
throw "Тег $tag уже указывает на другой коммит. Выберите новую версию."
}
}