Skip to content

Commit 02d3be0

Browse files
authored
[CI] Run git gc when creating a repo cache (#17368)
Without this cached checkout is slow. Note this is only when we re-create the cache, which only happens if it got deleted/doesn't exist for some reason. Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 1561b88 commit 02d3be0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

devops/actions/cached_checkout/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ runs:
3434
git pull --prune
3535
else
3636
git clone https://github.com/${{ inputs.repository }}.git .
37+
git gc
3738
fi
3839
- name: Checkout
3940
env:

0 commit comments

Comments
 (0)