diff --git a/wo/core/git.py b/wo/core/git.py index 29ab1fc..83dc949 100644 --- a/wo/core/git.py +++ b/wo/core/git.py @@ -19,6 +19,8 @@ class WOGit: for path in paths: global git wogit = git.bake("-C", "{0}".format(path)) + wogitsafe = git.bake("--global --add safe.directory", + "{0}".format(path)) if os.path.isdir(path): if not os.path.isdir(path + "/.git"): try: @@ -29,6 +31,7 @@ class WOGit: Log.debug(self, "{0}".format(e)) Log.error(self, "Unable to git init at {0}" .format(path)) + wogitsafe status = wogit.status("-s") if len(status.splitlines()) > 0: try: