3
0
Fork 0
forked from mirrors/nixpkgs

list-git-tags: fix for tags with / in the tag name

This commit is contained in:
linsui 2023-02-10 18:29:52 +08:00
parent ffe472eff8
commit b6c2a01ecd

View file

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