rcls / crap

Cvs Remote Access Program
GNU General Public License v3.0
46 stars 12 forks source link

Attempt to open a non-existent file #23

Open eyalroz opened 4 years ago

eyalroz commented 4 years ago

When running crap-clone, after the run has started, I'm getting the following error message;

opening .git/crap/version-cache.txt failed: No such file or directory

The .git subdirectory does exist; the rest is up to you, not me, to create... why aren't you creating it? :-(

rcls commented 4 years ago

If I read the source code correctly,

So the answer to "why aren't you creating it?" is "we do create it but tell you about what is going on"?

Am I missing something (e.g., crap-clone fails to handle that correctly and dies horribly)?

We could usefully add "this is harmless, continuing" to that message!

eyalroz commented 4 years ago

This doesn't hinder the operation of crap. So - it's a minor bug. I guess what I'm suggesting is that crap notice that it's just created the .git/crap directory, and when that is the case - not complain about not finding the version cache. Or perhaps never complain about not finding the version cache?