diff options
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index d0f131bd..2a56eaed 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -370,7 +370,7 @@ class Repo(object): def _get_config_path(self, config_level): # we do not support an absolute path of the gitconfig on windows , # use the global config instead - if is_win() and config_level == "system": + if is_win and config_level == "system": config_level = "global" if config_level == "system": @@ -884,7 +884,7 @@ class Repo(object): prev_cwd = None prev_path = None odbt = kwargs.pop('odbt', odb_default_type) - if is_win(): + if is_win: if '~' in path: raise OSError("Git cannot handle the ~ character in path %r correctly" % path) |