Can `shallow_clone=True` work with Git submodule?

lb.thanh's Avatar

lb.thanh

28 Jun, 2019 08:06 AM

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

  1. 1 Posted by lb.thanh on 28 Jun, 2019 08:43 AM

    lb.thanh's Avatar

    If this downloaded the zip file, so there is no .git folder as error message

  2. Support Staff 2 Posted by Owen McDonnell on 28 Jun, 2019 03:26 PM

    Owen McDonnell's Avatar

    You are correct that this will not work... and furthermore, GitHub doesn't include submodules in repo zip packages.

  3. Ilya Finkelshteyn closed this discussion on 28 Aug, 2019 09:01 PM.

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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM