Release v0.1.1
This commit is contained in:
+3
-2
@@ -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 уже указывает на другой коммит. Выберите новую версию."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user