@@ -54,21 +54,13 @@ function Get-ChangelogFromCommits {
5454 Write-Host " Cloning repository to generate changelog from commits..."
5555
5656 # Try progressive fallback for cloning
57- $depth = 200
58- git clone -- depth= $depth -- no- single- branch -- quiet $repoUrl $repoDir 2>&1 | Out-Null
57+ git clone -- depth= 200 -- no- single- branch -- quiet $repoUrl $repoDir
5958
60- # If shallow clone fails due to depth, try with more depth
61- if ($LASTEXITCODE -ne 0 ) {
62- Write-Host " Shallow clone failed, trying with increased depth..."
63- Remove-Item - Recurse - Force $repoDir - ErrorAction SilentlyContinue
64- git clone -- depth= 1000 -- no- single- branch -- quiet $repoUrl $repoDir 2>&1 | Out-Null
65- }
66-
67- # If still failing, try full clone as last resort
59+ # If shallow clone fails, try full clone as last resort
6860 if ($LASTEXITCODE -ne 0 ) {
6961 Write-Host " Deep clone failed, trying full clone..."
7062 Remove-Item - Recurse - Force $repoDir - ErrorAction SilentlyContinue
71- git clone -- quiet $repoUrl $repoDir 2>&1 | Out-Null
63+ git clone -- quiet $repoUrl $repoDir
7264 }
7365
7466 if ($LASTEXITCODE -ne 0 ) {
@@ -84,7 +76,7 @@ function Get-ChangelogFromCommits {
8476 Push-Location $repoDir
8577 try {
8678 # Ensure we have both tags
87- git fetch -- tags -- quiet 2>&1 | Out-Null
79+ git fetch -- tags -- quiet
8880 if ($LASTEXITCODE -ne 0 ) {
8981 Write-Warning " Could not fetch tags from repository"
9082 return $null
0 commit comments