Skip to content

Commit

Permalink
also disable shallow clone for --from-git option
Browse files Browse the repository at this point in the history
fixes #501
  • Loading branch information
ph1l authored and TingPing committed Dec 20, 2022
1 parent 386e34c commit e384833
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/builder-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,11 @@ main (int argc,

int mirror_flags = FLATPAK_GIT_MIRROR_FLAGS_MIRROR_SUBMODULES;

if (opt_no_shallow_clone)
{
mirror_flags |= FLATPAK_GIT_MIRROR_FLAGS_DISABLE_SHALLOW;
}

if (opt_disable_updates)
{
mirror_flags |= FLATPAK_GIT_MIRROR_FLAGS_UPDATE;
Expand Down

0 comments on commit e384833

Please sign in to comment.