When adding to the index a symlink to a directory, I get the following error message:
fatal: pathspec 'XXX' did not match any files
The file is there, and it is indeed a symlink, even to a directory inside the repository in fact.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
At least on my machine (Mac OS 10.7), the solution was to have the symlink actually point to some real content. In other words, the way the symlink was setup in the repository was that it was ‘broken’ (this was intentional: during the build process, that symlink would eventually become active in the final product). So I created a directory where the symlink was expecting it, was able to commit without an error, and then could delete that directory.