mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-23 00:11:33 +00:00
Remove unnecessary _last_valid_tag stuff
This commit is contained in:
parent
d8ac0dc311
commit
98e1bbe9d6
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user