From 2f5e8d11f353a643e84bf83fd6ac0757606b81d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 18 Jul 2018 13:42:05 +0200 Subject: [PATCH] Automatically init git in SnapshotProvider --- lib/tfw/components/snapshot_provider.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tfw/components/snapshot_provider.py b/lib/tfw/components/snapshot_provider.py index 1e9f226..65517e8 100644 --- a/lib/tfw/components/snapshot_provider.py +++ b/lib/tfw/components/snapshot_provider.py @@ -21,7 +21,9 @@ class SnapshotProvider: self._branch = 'master' self._branches = [self._branch] - def init_repo(self): + self._init_repo() + + def _init_repo(self): self._run(('git', 'init')) def take_snapshot(self):