Merge pull request #215670 from linsui/list-git-tags

list-git-tags: fix for tags with / in the tag name
This commit is contained in:
figsoda 2023-02-10 14:00:17 -05:00 committed by GitHub
commit c34c235192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,6 @@ fi
tags=$(git ls-remote --tags --refs "$url")
# keep only the version part of the tag
tags=$(echo "$tags" | cut --delimiter=/ --field=3)
tags=$(echo "$tags" | cut --delimiter=/ --field=3-)
echo "$tags"