Merge pull request #31700 from s0undt3ch/2015.8

It's a function!
This commit is contained in:
Nicole Thomas 2016-03-06 10:33:58 -07:00
commit ace290629e

View File

@ -916,7 +916,7 @@ class Pygit2(GitProvider):
# https://github.com/libgit2/libgit2/issues/2122
if "Error stat'ing config file" not in str(exc):
raise
home = pwd.getpwnam(salt.utils.get_user).pw_dir
home = pwd.getpwnam(salt.utils.get_user()).pw_dir
pygit2.settings.search_path[pygit2.GIT_CONFIG_LEVEL_GLOBAL] = home
self.repo = pygit2.Repository(self.cachedir)
except KeyError: