Skip to content

Commit 80d4311

Browse files
committed
fix(config): care tilde in include.path config
1 parent bbf0434 commit 80d4311

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎git/config.py

+2
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@ def read(self):
386386
# We expect all paths to be normalized and absolute (and will assure that is the case)
387387
if self._has_includes():
388388
for _, include_path in self.items('include'):
389+
if '~' in include_path:
390+
include_path = os.path.expanduser(include_path)
389391
if not os.path.isabs(include_path):
390392
if not close_fp:
391393
continue

0 commit comments

Comments
 (0)