When using CAS, pass this value to git clone --depth (default 1; -1 clones full history).
This flag has no effect when the CAS is disabled with --no-cas.
Controls the --depth value the CAS (Content Addressable Storage) uses when cloning a Git source. The default of 1 performs a shallow clone of the latest commit. Negative values clone the full history by omitting --depth entirely; zero is rejected because Git requires a positive depth.
When passing a negative value, use the --cas-clone-depth=-1 form so the leading dash isnโt parsed as a flag.
This flag sets the depth for all CAS Git clones. A depth query parameter on a source URL (for example ...vpc.git?depth=1) is stripped before Terragrunt invokes git, and never changes the depth, which always comes from this flag.
Type: integer
Default: 1
Environment Variables: