Commit cf109613 authored by Tails developers's avatar Tails developers
Browse files

Use "git tag -l" to detect if a tag exists.

Testing for .git/refs/tags/$tag existence is fragile, and currently does not
work in the stable build on Jenkins.
parent 7e7c8a75
......@@ -8,7 +8,7 @@ DEFAULT_COMPONENTS="main"
git_tag_exists() {
local tag="$1"
test -f ".git/refs/tags/$tag"
test -n "$(git tag -l "$tag")"
version_was_released() {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment