atom/git-utils

open() hangs when opening submodules

Closed this issue · 5 comments

When a module is added by executing git submodule add <url>, the repo is cloned without a .git directory. It contains a .git file instead and it seems to break everything.
The open method does not return at all. Is this the expected behavior?

Thanks.

Will take a look at this, definitely shouldn't hang though.

This is happening randomly.
I have a project with a submodule which contains a .git file with the absolute path of the real git folder and works ok.
But I tried cloning a random repo and then git submodule add <url> inside. No luck, open() hangs.

Just pushed a hang fix in 0.34.0, can you try upgrading to that version?

It works!

Thanks for letting me know, closing this issue.