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
}

View File

@ -129,7 +129,7 @@ func (s *GeneratorTestSuite) maybeCloneLinguist() {
s.T().Logf("Cloning Linguist repo to '%s' as %s was not set\n",
s.tmpLinguistDir, linguistClonedEnvVar)
cmd := exec.Command("git", "clone", linguistURL, s.tmpLinguistDir)
cmd := exec.Command("git", "clone", "--depth", "100", linguistURL, s.tmpLinguistDir)
err = cmd.Run()
assert.NoError(s.T(), err)
s.isCleanupNeeded = true