diff --git a/lib/git.py b/lib/git.py index 15f802e..0880e5d 100644 --- a/lib/git.py +++ b/lib/git.py @@ -46,7 +46,8 @@ class Git: ) def open(self): - self.git_run(["init", "--object-format=sha256", "-b", "factory"]) + if not self.exists(): + self.git_run(["init", "--object-format=sha256", "-b", "factory"]) def is_dirty(self): """Check if there is something to commit"""