conformance: support annotated tags

The former code listed all tags with show-ref which lists the actual tag commit
hash for annotated tags, not the dereferences hash. Although through `-d`
git-show-ref can also dereference annotated tags, this complicated the command
even more due do addition unpadding of the found tags.

Anyway, this code does the same in one command, available since git 1.7.
This commit is contained in:
Dr. Stefan Schimanski 2015-11-26 16:02:37 +01:00
parent 0ca2182192
commit d17f90ee62

View File

@ -70,7 +70,7 @@ echo -n "Conformance test SHA:"
HEAD_SHA=$(git rev-parse HEAD) HEAD_SHA=$(git rev-parse HEAD)
echo $HEAD_SHA echo $HEAD_SHA
echo "Conformance test version tag(s):" echo "Conformance test version tag(s):"
git show-ref | grep $HEAD_SHA | grep refs/tags git tag --points-at $HEAD_SHA
echo echo
echo "Conformance test checking conformance with Kubernetes version 1.0" echo "Conformance test checking conformance with Kubernetes version 1.0"