From fa3ce317f063bf49a775db75e0a3d28a96ff9814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 18 Jul 2018 16:26:10 +0200 Subject: [PATCH] Rename stuff to improve code readability --- lib/tfw/components/snapshot_provider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tfw/components/snapshot_provider.py b/lib/tfw/components/snapshot_provider.py index 96ea772..184e96c 100644 --- a/lib/tfw/components/snapshot_provider.py +++ b/lib/tfw/components/snapshot_provider.py @@ -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',