Skip to content

Commit e384833

Browse files
ph1lTingPing
authored andcommitted
also disable shallow clone for --from-git option
fixes #501
1 parent 386e34c commit e384833

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/builder-main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,11 @@ main (int argc,
599599

600600
int mirror_flags = FLATPAK_GIT_MIRROR_FLAGS_MIRROR_SUBMODULES;
601601

602+
if (opt_no_shallow_clone)
603+
{
604+
mirror_flags |= FLATPAK_GIT_MIRROR_FLAGS_DISABLE_SHALLOW;
605+
}
606+
602607
if (opt_disable_updates)
603608
{
604609
mirror_flags |= FLATPAK_GIT_MIRROR_FLAGS_UPDATE;

0 commit comments

Comments
 (0)