test: increase Linguist shallow clone depth

This commit is contained in:
Alex Bezzubov 2023-09-06 23:23:43 +03:00
parent b41b4e14fe
commit 59bfa6e3e3

View File

@ -21,7 +21,7 @@ func MaybeCloneLinguist(envVar, url, commit string) (string, bool, error) {
}
isCleanupNeeded = true
cmd := exec.Command("git", "clone", "--depth", "100", url, linguistTmpDir)
cmd := exec.Command("git", "clone", "--depth", "150", url, linguistTmpDir)
if err := cmd.Run(); err != nil {
panic(fmt.Errorf("%s: %w", cmd.String(), err))
}