Another fix for gitconfig path

This commit is contained in:
VirtuBox
2022-04-28 13:25:29 +02:00
parent 7c55efc437
commit 7f7002e60d

View File

@@ -30,7 +30,7 @@ class WOGit:
Log.debug(self, "{0}".format(e)) Log.debug(self, "{0}".format(e))
Log.error(self, "Unable to git init at {0}" Log.error(self, "Unable to git init at {0}"
.format(path)) .format(path))
if not WOFileUtils.grep(self, "$HOME/.gitconfig", if not WOFileUtils.grep(self, "~/.gitconfig",
"{0}".format(path)): "{0}".format(path)):
git.config("--global", "--add", "safe.directory", git.config("--global", "--add", "safe.directory",
"{0}".format(path)) "{0}".format(path))