Skip to content

Commit

Permalink
conformance: support annotated tags
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sttts committed Dec 1, 2015
1 parent 0ca2182 commit d17f90e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/conformance-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ echo -n "Conformance test SHA:"
HEAD_SHA=$(git rev-parse HEAD)
echo $HEAD_SHA
echo "Conformance test version tag(s):"
git show-ref | grep $HEAD_SHA | grep refs/tags
git tag --points-at $HEAD_SHA
echo
echo "Conformance test checking conformance with Kubernetes version 1.0"

Expand Down

0 comments on commit d17f90e

Please sign in to comment.