-
Notifications
You must be signed in to change notification settings - Fork 29
Add flag to clone a git repository recursive
#95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
to support git submodules
@jmitchell do you think we could merge this? |
Actually, I think there's a problem. We are first cloning git repository with submodules for master HEAD, then we checkout to another branch. But if another branch has different submodules, this will fail. @sectore can you make submodule usage explicit command after checkout has been done? |
@domenkozar Which |
Yes - |
@domenkozar Would
(^ https://git-scm.com/docs/git-clone#git-clone---recurse-submodulesltpathspec) |
@domenkozar Or did you mean to run that |
explicit if needed
into support-git-recursive
@domenkozar 09a7af0 (not tested locally) |
of github.com:input-output-hk/stack2nix into support-git-recursive
@jmitchell Friendly ping: Are you happy with that PR ^ or do you miss something? It would be great to have that PR in |
There is some kind of a bug that causes domenkozar/hie-nix#13 (comment) - I will investigate tomorrow. |
Should this just be the default behaviour? |
OK there's no bug in particular with this PR, but I've opened #103 |
Unless there's some way we discover this could break other projects, that sounds good to me. |
Mainly need to check if it has performance implications. |
Couldn't find a reason not to do handle submodules by default, so I opened #108 |
Thank you @sectore for this work! |
to support
git
submodules.I came across that issue while trying to update https://github.com/domenkozar/hie-nix to latest
HIE
. BecauseHIE
is using submodules now,stack2nix
was thrown an error about missing sources of submodules defined instack-8.2.1.yaml
orstack-8.2.1.yaml
.This PR will fix that issue.