Skip to content

do not glob a path if it exists 'unglobbed' #797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
yield only if file
  • Loading branch information
sdementen authored Jan 13, 2019
commit bc8b187b2ee73c6d3eae12ac986239c29bb5004f
4 changes: 2 additions & 2 deletions git/index/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ def raise_exc(e):
continue
# end check symlink

# if abs_path exists, yield it
if os.path.exists(abs_path):
# if abs_path exists and is a file, yield it
if os.path.exists(abs_path) and os.path.isfile(abs_path):
# even if the path contains special characters like ?*[ (glob)
# if it exists, we take it
yield abs_path
Expand Down