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
Thanks for the great library. I've been migrated to gert from git2r, hoping to get support for cloning repositories with submodules (reference git2r's issue on recursive).
If I call a git_clone() on a repository that has a submodule (tracking a specific commit in the submnodule), then follow that with a get_submodule_fetch() I end up with the submodule being at the HEAD state of the remote repository, rather than the commit string specified in the parent module. I currently work around this by doing the git_clone(), then the git_submodule_fetch() then shelling out to call git submodule update --recursive --init.
Is there a way to carry out this process entirely within gert? There's an enticing bit of code (not exported) here suggesting it's been considered. Even better would be to get full git clone --recursive support on the initial git_clone() call. That last function doesn't pass through any extra arguments at the moment.
Appreciate the time!
The text was updated successfully, but these errors were encountered:
Thanks for the great library. I've been migrated to gert from git2r, hoping to get support for cloning repositories with submodules (reference git2r's issue on recursive).
If I call a
git_clone()
on a repository that has a submodule (tracking a specific commit in the submnodule), then follow that with aget_submodule_fetch()
I end up with the submodule being at the HEAD state of the remote repository, rather than the commit string specified in the parent module. I currently work around this by doing thegit_clone()
, then thegit_submodule_fetch()
then shelling out to callgit submodule update --recursive --init
.Is there a way to carry out this process entirely within
gert
? There's an enticing bit of code (not exported) here suggesting it's been considered. Even better would be to get fullgit clone --recursive
support on the initialgit_clone()
call. That last function doesn't pass through any extra arguments at the moment.Appreciate the time!
The text was updated successfully, but these errors were encountered: