You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this the test from the library or is it something that was created by you? I'm not sure but I think that gitDir is used only for bare repos, but I may be wrong. I actually never used gitDir option (maybe only at the beginning long ago when was learning how to use the library).
EDIT: I'm also not sure if you can use gitDir with dir option together.
Thanks for your prompt attention to this matter. The test is one that I made to reproduce the problem. You are correct, it is the dir option that I am trying to depend on. I want to git.init in a subfolder and push the code to another branch. A bit like gh_pages deploy command. I am using stackblitz and need isomorphic.git to run in their browser environment.
Sorry for the late response I'm browsing open issues. Because I was closing issues related to Salesforce that didn't catch exceptions from Isomorphic git that say to create an issue here.
If you need to make this work you will need to read the code to figure out why it doesn't work.
using node, no bundler the following test fails
it returns:
FAIL spec/GitLoader.test.js > git-cli for a pwa > does a git init with api
Error: ENOENT: no such file or directory, open 'test/.git/config'
The code ends up here with gitdir not including the dir parameter (".git"):
It would be somewhat better if an error was thrown
Better still if the .git folder was created in the specified dir.
The text was updated successfully, but these errors were encountered: