It's a function!

This commit is contained in:
Pedro Algarvio 2016-03-06 01:45:14 +00:00
parent cf438aa873
commit 1ca2beea3e
No known key found for this signature in database
GPG Key ID: BB36BF6584A298FF

View File

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