devtool: fix tag existence check
As part of our automated release process,
we would check if the tag associated with the
targeted release already exists. However this check
was faulty since git rev-parse searches through all
references (including branches).
@@ -428,7 +428,7 @@ check_release_tag() {
say "Fetching remote tags..."
git fetch upstream --tags
- if git rev-parse v$1 >/dev/null 2>&1; then
+ if git tag | grep v$1 >/dev/null 2>&1; then
say_err "Seems that tag provided is already associated with a release! "
say "Will skip drafting a new release for now."
return 1
