Open jokram opened 5 years ago
Thanks for the detailed report. I just ran your script on Debian, and it works fine, so I am extremely tempted to blame Windows. I don't have a Windows machine set up for testing, and our company does next to no development on Windows, so it's not surprising that there are some issues there.
Based on a quick grep, that error message probably comes from libgit2 (which we use via NodeGit). But I think it's in a utility method that's used all over the place, so I can't give any more specific debugging information.
We would happily accept bug fixes for Windows, if you happen to want to write some.
BTW, I notice that you are adding a README.md file to the meta repository. We have no files (other than .gitmodules) in our meta repo, and git-meta has some code that assumes that there are only submodules, without any files, in the meta repo. So you might run into an issue if you do that (but that is probably not the cause of this bug specifically).
When trying to add a new submodule to a repository having no submodules then I'll always get the following error:
Is it because I'm having Windows?
This is the script I've used to check if I'm making something wrong: https://gist.github.com/dhbaird/a7137b3fa012cb88c3cb64c1a201d4d2:
Here is the full output of that script: