diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2017-05-15 14:18:41 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-05-23 17:45:36 +0100 |
commit | 0aafcddab016a1fa0b5aa693f27c19937fe5fafd (patch) | |
tree | 1e58ecdbcf78f6e3e3ce806411380c9aeadc747a /meta/lib/oeqa | |
parent | a7c686cfe685f7acc20af32b41b6e2f51273ac6f (diff) | |
download | poky-0aafcddab016a1fa0b5aa693f27c19937fe5fafd.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.
(From OE-Core rev: f5b420c7f07a008c11d492b055c7cc8869f644d3)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/utils/git.py | 2 |
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): | |||
64 | def rev_parse(self, revision): | 64 | def rev_parse(self, revision): |
65 | """Do git rev-parse""" | 65 | """Do git rev-parse""" |
66 | try: | 66 | try: |
67 | return self.run_cmd(['rev-parse', revision]) | 67 | return self.run_cmd(['rev-parse', '--verify', revision]) |
68 | except GitError: | 68 | except GitError: |
69 | # Revision does not exist | 69 | # Revision does not exist |
70 | return None | 70 | return None |