1 parent bbf0434 commit 80d4311Copy full SHA for 80d4311
git/config.py
@@ -386,6 +386,8 @@ 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:
390
+ include_path = os.path.expanduser(include_path)
391
if not os.path.isabs(include_path):
392
if not close_fp:
393
continue
0 commit comments