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
Workaround repo.submodules() to deal with unborn repositories.
This fix will come from `gitoxide`, but until that's released we
handle it here.
Doing so is fine becuase of the following.
The order in which submodule files are tried is this:
- worktree
- index
- HEAD:.gitmodules
If the `HEAD^{commit}` can't be read, this means there is definitely
no gitmodules file there. And since it's the last stage, there
is nothing we'd fail to discover.
0 commit comments