mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
OP-1733_version-info.py_check_for_json_first
This commit is contained in:
parent
54b8e7a2ab
commit
a70c972572
@ -113,15 +113,15 @@ class Repo:
|
||||
"""Initialize object instance and read repo info"""
|
||||
self._path = path
|
||||
self._exec('rev-parse --verify HEAD')
|
||||
if self._rc == 0:
|
||||
if self._load_json():
|
||||
pass
|
||||
elif self._rc == 0:
|
||||
self._hash = self._out.strip(' \t\n\r')
|
||||
self._get_origin()
|
||||
self._get_time()
|
||||
self._get_tag()
|
||||
self._get_branch()
|
||||
self._get_dirty()
|
||||
elif self._load_json():
|
||||
pass
|
||||
else:
|
||||
self._hash = None
|
||||
self._origin = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user