test: limit linguist repo history size

This commit is contained in:
Alex Bezzubov
2022-11-23 22:04:53 +01:00
parent a93364ec79
commit 43475949cc
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ func maybeCloneLinguist() (string, bool, error) {
}
isCleanupNeeded = true
cmd := exec.Command("git", "clone", linguistURL, linguistTmpDir)
cmd := exec.Command("git", "clone", "--depth", "100", linguistURL, linguistTmpDir)
if err := cmd.Run(); err != nil {
return linguistTmpDir, isCleanupNeeded, err
}