Skip to content

Commit 16bdce5

Browse files
feat: GoGitActionCache shallow fetch (#2677)
* speed up cloning iff feature flag is on, should not have any negative impact
1 parent bce0f19 commit 16bdce5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/runner/action_cache.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ func (c GoGitActionCache) Fetch(ctx context.Context, cacheDir, url, ref, token s
7777
},
7878
Auth: auth,
7979
Force: true,
80+
Depth: 1,
8081
}); err != nil {
8182
return "", fmt.Errorf("GoGitActionCache failed to fetch %s with ref %s at %s: %w", url, ref, gitPath, err)
8283
}

0 commit comments

Comments
 (0)