1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

Merge branch 'next' of ssh://git.openpilot.org/OpenPilot into abeck/OP-1721

This commit is contained in:
abeck70 2015-02-19 16:44:52 +11:00
commit b9d7408da6

View File

@ -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