-
Notifications
You must be signed in to change notification settings - Fork 533
read git data faild "empty string is not a valid pathspec" #345
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
Comments
Same here. Looks like git returns a error for empty path spec since version 2.16. The behavior to treat empty path spec as |
It looks like defaulting the location parameter of ls_files (lib.rb line 398) to '.' solves this bug for me, but I do not know whether that is a proper and/or complete fix. |
This really was deprecated since git 2.1.6: https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.16.0.txt
Judging by this changelog entry, the ix here really is using I've mapped possible code where this could break the code on lib.rb:
Thus I'll open a PR fixing the case for line 398. |
Since GIT version 2.16.0 empty pathspecs as alias to "everything" has been made illegal. A more detailed study this change's impact has been made at: ruby-git#345 (comment) Closes ruby-git#345
Since GIT version 2.16.0 empty pathspecs as alias to "everything" has been made illegal. A more detailed study this change's impact has been made at: ruby-git#345 (comment) Closes ruby-git#345
Since GIT version 2.16.0 empty pathspecs as alias to "everything" has been made illegal. A more detailed study this change's impact has been made at: #345 (comment) Closes #345
Any eta on a new version released with this fix? |
读取Git数据失败git '--git-dir=/Users/dongzhao/Works/QCloud/Src/iOS/Git/QCloudiOSCodes/.git' '--work-tree=/Users/dongzhao/Works/QCloud/Src/iOS/Git/QCloudiOSCodes' ls-files '--stage' '' 2>&1:fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
The text was updated successfully, but these errors were encountered: