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.
1 parent d39bd53 commit 0420b01Copy full SHA for 0420b01
git/index/base.py
@@ -373,8 +373,8 @@ def raise_exc(e):
373
continue
374
# end check symlink
375
376
- # resolve globs if possible
377
- if '?' in path or '*' in path or '[' in path:
+ # if the path is not already pointing to an existing file, resolve globs if possible
+ if not os.path.exists(path) and ('?' in path or '*' in path or '[' in path):
378
resolved_paths = glob.glob(abs_path)
379
# not abs_path in resolved_paths:
380
# a glob() resolving to the same path we are feeding it with
0 commit comments