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
% zcomet load <user>/<repo>@<branch># snip
Submodule path '<submodule name>': checked out '<sha>'
fatal: not a git repository: ../.git/modules/<submodule name>
fatal: could not reset submodule index
Could not checkout `<branch>'.%
Steps to reproduce
Create a new GitHub repo
Add a submodule to default branch, commit, and push
zcomet load olets/submoduled@no-submodule-changes-compared-to-main should work but doesn't for me
zcomet load olets/submoduled@adds-submodule-zcomet should work but doesn't for me
More info
I'm on
zsh 5.9 (arm-apple-darwin21.3.0)
OSTYPE darwin21.3.0
git version 2.47.0
latest zcomet as of this writing
I haven't looked into how zcomet load works. (Resisting for now after getting sucked into many time consuming open source adventures in the last few days heh). Notably this error happens when one git equivalent,
The text was updated successfully, but these errors were encountered:
olets
changed the title
[bug] submodule error when loading a ref with zcomet load githubuser/repo@ref
[bug] zcomet load githubuser/repo@ref submodule error
Oct 30, 2024
I can't get any of my systems to produce your error message, but I see that there is a bug in zcomet related to how Git submodules work. I should have time to address it on Monday. I'll send you a message when I'm ready for you to test the fix, OK?
Expected
Submodules are handled succesfully, whether the default branch is loaded
or some other ref is
Actual
zcomet load
ing a repo with a submodule works when loading the default branch, but leads to an error.Where you'd expect the last line of output to be
there are additional lines
Steps to reproduce
zcomet load <github user>/<github repo>@$(git rev-parse @)
Here's a demo repo https://github.com/olets/submoduled
It has branches
main
has https://github.com/olets/zsh-abbr as a submodulezcomet load olets/submoduled
should workzcomet load olets/submoduled@no-submodule-changes-compared-to-main
should work but doesn't for mezcomet load olets/submoduled@adds-submodule-zcomet
should work but doesn't for meMore info
I'm on
I haven't looked into how
zcomet load
works. (Resisting for now after getting sucked into many time consuming open source adventures in the last few days heh). Notably this error happens when one git equivalent,succeeds.
The text was updated successfully, but these errors were encountered: