mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-23 02:21:57 +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):
|
||||
if self._head_detached:
|
||||
self._checkout_branch_from_head()
|
||||
self._checkout_new_branch_from_head()
|
||||
self._run(('git', 'add', '-A'))
|
||||
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()
|
||||
self._run((
|
||||
'git', 'checkout',
|
||||
|
Loading…
Reference in New Issue
Block a user