aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-compliance/Makefile.am
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-02-09 10:35:33 +0100
committerHans Verkuil <hans.verkuil@cisco.com>2017-02-09 10:35:33 +0100
commitfa6f7e1e2aa5139a79e549f0de2d9bc172e4bcff (patch)
treed29aeea6b2da219862b998354d9ea4c047fd0c34 /utils/v4l2-compliance/Makefile.am
parent89819cabe3ef0ce9a9f70712482dbbdabbc39287 (diff)
v4l2/cec-compliance, cec-follower: use git rev-parse HEAD
Use git rev-parse HEAD to get the SHA for the HEAD instead of git show-ref -s HEAD: the latter didn't do what I expected if a specific git commit was checked out. I just want the SHA for the current checked out HEAD. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/v4l2-compliance/Makefile.am')
-rw-r--r--utils/v4l2-compliance/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/v4l2-compliance/Makefile.am b/utils/v4l2-compliance/Makefile.am
index c2b59193..03db8dff 100644
--- a/utils/v4l2-compliance/Makefile.am
+++ b/utils/v4l2-compliance/Makefile.am
@@ -19,9 +19,9 @@ EXTRA_DIST = Android.mk fixme.txt v4l2-compliance.1
v4l2-compliance.cpp: version.h
version.h:
- @if git show-ref -s HEAD >/dev/null 2>&1; then \
+ @if git rev-parse HEAD >/dev/null 2>&1; then \
echo -n "#define SHA " >$@ ; \
- git show-ref -s HEAD >>$@ ; \
+ git rev-parse HEAD >>$@ ; \
else \
touch $@ ; \
fi

Privacy Policy