From bfb3064a766b1a134d8ea01a2c73b4f6f3b28db4 Mon Sep 17 00:00:00 2001 From: Misha Kav Date: Sun, 23 Nov 2025 09:50:52 +0200 Subject: [PATCH] Optimize git clone performance by using shallow-since instead of full history MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace --deepen=2147483647 with --shallow-since="6 months ago" to improve clone performance while maintaining sufficient commit history for gitStream analysis. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- action.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index e23b3fdc..a7023642 100644 --- a/action.yml +++ b/action.yml @@ -126,12 +126,11 @@ runs: if: ${{ env.SHOULD_CHECKOUT == 'true' }} shell: bash run: | - ALL=2147483647 cd gitstream && cd repo git config checkout.defaultRemote origin - git fetch --deepen=$ALL origin $'${{ steps.safe-strings.outputs.base_ref }}' + git fetch --shallow-since="6 months ago" origin $'${{ steps.safe-strings.outputs.base_ref }}' git remote add upstream $'${{ steps.safe-strings.outputs.url }}' - git fetch --deepen=$ALL upstream $'${{ steps.safe-strings.outputs.head_ref }}' + git fetch --shallow-since="6 months ago" upstream $'${{ steps.safe-strings.outputs.head_ref }}' git checkout -b $'upstream/${{ steps.safe-strings.outputs.head_ref}}' $'upstream/${{ steps.safe-strings.outputs.head_ref}}' git checkout $'${{ steps.safe-strings.outputs.base_ref }}' git checkout $'${{ steps.safe-strings.outputs.head_ref }}'