mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 14:47:50 -03:00
test: limit linguist repo history size
This commit is contained in:
@ -32,7 +32,7 @@ func maybeCloneLinguist() (string, bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isCleanupNeeded = true
|
isCleanupNeeded = true
|
||||||
cmd := exec.Command("git", "clone", linguistURL, linguistTmpDir)
|
cmd := exec.Command("git", "clone", "--depth", "100", linguistURL, linguistTmpDir)
|
||||||
if err := cmd.Run(); err != nil {
|
if err := cmd.Run(); err != nil {
|
||||||
return linguistTmpDir, isCleanupNeeded, err
|
return linguistTmpDir, isCleanupNeeded, err
|
||||||
}
|
}
|
||||||
|
@ -129,7 +129,7 @@ func (s *GeneratorTestSuite) maybeCloneLinguist() {
|
|||||||
|
|
||||||
s.T().Logf("Cloning Linguist repo to '%s' as %s was not set\n",
|
s.T().Logf("Cloning Linguist repo to '%s' as %s was not set\n",
|
||||||
s.tmpLinguistDir, linguistClonedEnvVar)
|
s.tmpLinguistDir, linguistClonedEnvVar)
|
||||||
cmd := exec.Command("git", "clone", linguistURL, s.tmpLinguistDir)
|
cmd := exec.Command("git", "clone", "--depth", "100", linguistURL, s.tmpLinguistDir)
|
||||||
err = cmd.Run()
|
err = cmd.Run()
|
||||||
assert.NoError(s.T(), err)
|
assert.NoError(s.T(), err)
|
||||||
s.isCleanupNeeded = true
|
s.isCleanupNeeded = true
|
||||||
|
Reference in New Issue
Block a user