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