From 93ad551054ab17c955454d94b1949cdd8585323c Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 4 Apr 2026 20:14:40 +0900 Subject: [PATCH] internal/rosa/git: shallow clone The .git directory is destroyed anyway, so no point fetching more than the bare minimum. Signed-off-by: Ophestra --- internal/rosa/git.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/rosa/git.go b/internal/rosa/git.go index ad3f5b91..e39e0c31 100644 --- a/internal/rosa/git.go +++ b/internal/rosa/git.go @@ -105,7 +105,9 @@ func (t Toolchain) NewViaGit( git \ -c advice.detachedHead=false \ clone \ + --depth=1 \ --revision=`+rev+` \ + --shallow-submodules \ --recurse-submodules \ `+url+` \ /work