Can `shallow_clone=True` work with Git submodule?
Hi,
My project need to clone submodule for build.
When I enabled shallow_clone=True, I got below error
git submodule update --init --recursive
fatal: not a git repository (or any of the parent directories): .git
Command exited with code 128
Build failed
I want to confirm that shallow_clone can associate with Git submodule or not?
Warm regards,
Thanh
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by lb.thanh on 28 Jun, 2019 08:43 AM
If this downloaded the zip file, so there is no .git folder as error message
Support Staff 2 Posted by Owen McDonnell on 28 Jun, 2019 03:26 PM
You are correct that this will not work... and furthermore, GitHub doesn't include submodules in repo zip packages.
Ilya Finkelshteyn closed this discussion on 28 Aug, 2019 09:01 PM.