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

Commit0420b01

Browse files
committed
Only resolve globs if path does not exist on disk
Fixes#994
1 parentd39bd53 commit0420b01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/index/base.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ def raise_exc(e):
373373
continue
374374
# end check symlink
375375

376-
# resolve globs if possible
377-
if'?'inpathor'*'inpathor'['inpath:
376+
#if the path is not already pointing to an existing file,resolve globs if possible
377+
ifnotos.path.exists(path)and ('?'inpathor'*'inpathor'['inpath):
378378
resolved_paths=glob.glob(abs_path)
379379
# not abs_path in resolved_paths:
380380
# a glob() resolving to the same path we are feeding it with

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp