summaryrefslogtreecommitdiff
path: root/git/repo/base.py
diff options
context:
space:
mode:
authorKostis Anagnostopoulos <ankostis@gmail.com>2016-09-27 16:05:58 +0200
committerKostis Anagnostopoulos <ankostis@gmail.com>2016-09-28 03:35:38 +0200
commite61439b3018b0b9a8eb43e59d0d7cf32041e2fed (patch)
tree864b8c57283d3167b192b69bd17e366252ebee15 /git/repo/base.py
parentdf2fb548040c8313f4bb98870788604bc973fa18 (diff)
downloadgitpython-e61439b3018b0b9a8eb43e59d0d7cf32041e2fed.tar.gz
src: constify is_<platform>() calls
+ TCs: unittest-asserts for git-tests.
Diffstat (limited to 'git/repo/base.py')
-rw-r--r--git/repo/base.py4
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)