mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
It's a function!
This commit is contained in:
parent
cf438aa873
commit
1ca2beea3e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user