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
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:
self.__last_valid_branch = self._branch
return self.__last_valid_branch
def _checkout(self, what):
self._run((
'git', 'checkout',
what
))
self._update_last_valid_branch()
@property
def all_timelines(self):