mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 18:41:32 +00:00
Rename stuff to improve code readability
This commit is contained in:
parent
fb2beb470f
commit
fa3ce317f0
@ -41,11 +41,11 @@ class SnapshotProvider:
|
|||||||
|
|
||||||
def take_snapshot(self):
|
def take_snapshot(self):
|
||||||
if self._head_detached:
|
if self._head_detached:
|
||||||
self._checkout_branch_from_head()
|
self._checkout_new_branch_from_head()
|
||||||
self._run(('git', 'add', '-A'))
|
self._run(('git', 'add', '-A'))
|
||||||
self._run(('git', 'commit', '-m', 'Snapshot'))
|
self._run(('git', 'commit', '-m', 'Snapshot'))
|
||||||
|
|
||||||
def _checkout_branch_from_head(self):
|
def _checkout_new_branch_from_head(self):
|
||||||
head_hash = self._get_head_hash()
|
head_hash = self._get_head_hash()
|
||||||
self._run((
|
self._run((
|
||||||
'git', 'checkout',
|
'git', 'checkout',
|
||||||
|
Loading…
Reference in New Issue
Block a user