Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
str.startswith('~')
'~' in str
1 parent 80d4311 commit 1578bafCopy full SHA for 1578baf
git/config.py
@@ -386,7 +386,7 @@ def read(self):
386
# We expect all paths to be normalized and absolute (and will assure that is the case)
387
if self._has_includes():
388
for _, include_path in self.items('include'):
389
- if '~' in include_path:
+ if include_path.startswith('~'):
390
include_path = os.path.expanduser(include_path)
391
if not os.path.isabs(include_path):
392
if not close_fp:
0 commit comments