forked from importers/git-importer
Only init the repository if it doesn't exist already
harmless, but avoids a scary warning
This commit is contained in:
parent
073550825c
commit
b9670821a9
@ -46,6 +46,7 @@ class Git:
|
|||||||
)
|
)
|
||||||
|
|
||||||
def open(self):
|
def open(self):
|
||||||
|
if not self.exists():
|
||||||
self.git_run(["init", "--object-format=sha256", "-b", "factory"])
|
self.git_run(["init", "--object-format=sha256", "-b", "factory"])
|
||||||
|
|
||||||
def is_dirty(self):
|
def is_dirty(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user