scripts: fix ABI validator when revision is a tag
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 15 Dec 2015 13:55:15 +0000 (15:55 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 15 Dec 2015 14:19:32 +0000 (15:19 +0100)
commitece9c50d400f724fd307424b889f9d637baec858
tree1d6fce6987119c302eab0daf2e9e4160471b97d4
parent29c673401c4debc2b96d6bf4cc11f56272f9ec0e
scripts: fix ABI validator when revision is a tag

Commit 9cbae2aa64eb managed to break the only previously supported
case where a tag is used as a revision, due to git show output
differing between tags and other objects. The hash is on the last
line of the output in both cases though so just grab that.

Fixes: 9cbae2aa64eb ("scripts: support any git revisions as ABI validation range")

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
scripts/validate-abi.sh