Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1578baf

Browse files
committed
fix(config): usestr.startswith('~') instead of'~' in str
1 parent80d4311 commit1578baf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def read(self):
386386
# We expect all paths to be normalized and absolute (and will assure that is the case)
387387
ifself._has_includes():
388388
for_,include_pathinself.items('include'):
389-
if'~'ininclude_path:
389+
ifinclude_path.startswith('~'):
390390
include_path=os.path.expanduser(include_path)
391391
ifnotos.path.isabs(include_path):
392392
ifnotclose_fp:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp