Skip to content

Conversation

@Moraxyc
Copy link

@Moraxyc Moraxyc commented Jan 26, 2025

This is necessary because a submodule in Git must have the corresponding commit hash.
This ensures that the submodule can be cloned correctly using the --recurse-submodules option,
or initialized with git submodule init to fetch the submodule.

I discovered this issue while packaging Cadabra2 for nixpkgs. I tried running git submodule init and other commands, but was unable to pull the submodule, which left me quite confused. It wasn't until I realized that there was no file pinning the commit hash of the submodule at submodules/microtex, causing Git to not know how to fetch the submodule.

This is necessary because a submodule in Git must have the corresponding commit hash.
This ensures that the submodule can be cloned correctly using the --recurse-submodules option,
or initialized with `git submodule init` to fetch the submodule.
@kpeeters
Copy link
Owner

I have fixed this in the devel branch.

@kpeeters kpeeters closed this Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants