Rename stuff to improve code readability

This commit is contained in:
Kristóf Tóth 2018-07-18 16:26:10 +02:00
parent fb2beb470f
commit fa3ce317f0

View File

@ -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',