Commit d17f90ee authored by Dr. Stefan Schimanski's avatar Dr. Stefan Schimanski

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.
parent 0ca21821
...@@ -70,7 +70,7 @@ echo -n "Conformance test SHA:" ...@@ -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"
......
Markdown is supported
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