From 60baef55db564862792527149086f72bfe5b85d6 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Thu, 28 Apr 2022 12:45:26 +0200 Subject: [PATCH] Another fix for git safe directory --- wo/core/git.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wo/core/git.py b/wo/core/git.py index 5d1e9c9..cb3a8ca 100644 --- a/wo/core/git.py +++ b/wo/core/git.py @@ -19,8 +19,6 @@ 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: @@ -31,7 +29,7 @@ class WOGit: Log.debug(self, "{0}".format(e)) Log.error(self, "Unable to git init at {0}" .format(path)) - wogitsafe.config() + git.config("--global --add safe.directory", "{0}".format(path)) status = wogit.status("-s") if len(status.splitlines()) > 0: try: