diff options
author | Mihyaeru <mihyaeru21@gmail.com> | 2015-07-06 22:43:47 +0900 |
---|---|---|
committer | Mihyaeru <mihyaeru21@gmail.com> | 2015-07-06 22:43:47 +0900 |
commit | 1578baf817c2526d29276067d2f23d28b6fab2b1 (patch) | |
tree | ddbafac91d8155082100c77e424aff9a94ba6fc0 /git/config.py | |
parent | 80d43111b6bb73008683ad2f5a7c6abbab3c74ed (diff) | |
download | gitpython-1578baf817c2526d29276067d2f23d28b6fab2b1.tar.gz |
fix(config): use `str.startswith('~')` instead of `'~' in str`
Diffstat (limited to 'git/config.py')
-rw-r--r-- | git/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/config.py b/git/config.py index b5e1fbab..b7ddf0d2 100644 --- a/git/config.py +++ b/git/config.py @@ -386,7 +386,7 @@ class GitConfigParser(with_metaclass(MetaParserBuilder, cp.RawConfigParser, obje # We expect all paths to be normalized and absolute (and will assure that is the case) if self._has_includes(): for _, include_path in self.items('include'): - if '~' in include_path: + if include_path.startswith('~'): include_path = os.path.expanduser(include_path) if not os.path.isabs(include_path): if not close_fp: |