aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2017-05-15 14:18:41 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-05-23 17:44:00 +0100
commitf5b420c7f07a008c11d492b055c7cc8869f644d3 (patch)
tree87ed080806ce61584255d01a5026309f2770dcd6 /meta/lib/oeqa/utils
parentef73fa70f0955912b0da140922465a3c817424e9 (diff)
downloadopenembedded-core-contrib-f5b420c7f07a008c11d492b055c7cc8869f644d3.tar.gz
oeqa.utils.git: use --verify in rev_parse()
We use rev-parse for turning git object names into SHA-1 and checking their existence. Using --verify option makes sure git-rev-parse does what we expect. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/utils')
-rw-r--r--meta/lib/oeqa/utils/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/git.py b/meta/lib/oeqa/utils/git.py
index e0cb3f0db2..757e3f0cbf 100644
--- a/meta/lib/oeqa/utils/git.py
+++ b/meta/lib/oeqa/utils/git.py
@@ -64,7 +64,7 @@ class GitRepo(object):
def rev_parse(self, revision):
"""Do git rev-parse"""
try:
- return self.run_cmd(['rev-parse', revision])
+ return self.run_cmd(['rev-parse', '--verify', revision])
except GitError:
# Revision does not exist
return None