Skip to content

Commit

Permalink
Kconfig: use 30 depth shallow clone by default
Browse files Browse the repository at this point in the history
A typical development environment will likely need only about
the last 30 commits, so use that by default, so to speed things
up. If folks want more they can always:

git unshallow

Signed-off-by: Luis Chamberlain <[email protected]>
  • Loading branch information
mcgrof committed Nov 5, 2024
1 parent 16fc636 commit 4225e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflows/linux/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ config BOOTLINUX_TREE_LOCALVERSION

config BOOTLINUX_SHALLOW_CLONE
bool "Shallow git clone"
default BOOTLINUX_TREE_SET_BY_CLI
default y
help
If enabled the git tree cloned with be cloned using a shallow tree
with history truncated. You want to enable this if you really don't
Expand All @@ -289,7 +289,7 @@ config BOOTLINUX_SHALLOW_CLONE

config BOOTLINUX_SHALLOW_CLONE_DEPTH
int "Shallow git clone depth"
default 5 if BOOTLINUX_TREE_SET_BY_CLI
default 30 if BOOTLINUX_TREE_SET_BY_CLI
default 1 if !BOOTLINUX_TREE_SET_BY_CLI
depends on BOOTLINUX_SHALLOW_CLONE
help
Expand Down

0 comments on commit 4225e6c

Please sign in to comment.