source-depth should propagate to git submodules

Bug #1965792 reported by Isaac True
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

Currently, specifying "source-depth: 1" only does a shallow checkout of the root repository. If there are any submodules, the entire submodule history is checked out. In a repository consisting largely of submodues (e.g. https://github.com/qt/qt5) this massively impacts the build time.

Proposition: if "source-depth" is specified, "--depth" should also be added to the "git submodule update" command.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.