Remove unnecessary _last_valid_tag stuff

This commit is contained in:
Kristóf Tóth 2018-07-19 14:25:25 +02:00
parent d8ac0dc311
commit 98e1bbe9d6

View File

@ -101,19 +101,15 @@ class SnapshotProvider:
@property @property
def _last_valid_branch(self): def _last_valid_branch(self):
self._update_last_valid_branch()
return self.__last_valid_branch
def _update_last_valid_branch(self):
if not self._head_detached: if not self._head_detached:
self.__last_valid_branch = self._branch self.__last_valid_branch = self._branch
return self.__last_valid_branch
def _checkout(self, what): def _checkout(self, what):
self._run(( self._run((
'git', 'checkout', 'git', 'checkout',
what what
)) ))
self._update_last_valid_branch()
@property @property
def all_timelines(self): def all_timelines(self):