@@ -369,17 +369,13 @@ try
369369 $claudeEnv [" IS_TEAMCITY_AGENT" ] = $env: IS_TEAMCITY_AGENT
370370 }
371371
372- # Git identity - read from host git config if not set in environment
373- $gitUserName = $env: GIT_USER_NAME
374- $gitUserEmail = $env: GIT_USER_EMAIL
375- if (-not $gitUserName )
376- {
377- $gitUserName = git config -- global user.name
378- }
379- if (-not $gitUserEmail )
380- {
381- $gitUserEmail = git config -- global user.email
382- }
372+ # Git identity - CLAUDE_ prefixed vars take precedence, then GIT_USER_*, then git config
373+ $gitUserName = $env: CLAUDE_GIT_USER_NAME
374+ if (-not $gitUserName ) { $gitUserName = $env: GIT_USER_NAME }
375+ if (-not $gitUserName ) { $gitUserName = git config -- global user.name }
376+ $gitUserEmail = $env: CLAUDE_GIT_USER_EMAIL
377+ if (-not $gitUserEmail ) { $gitUserEmail = $env: GIT_USER_EMAIL }
378+ if (-not $gitUserEmail ) { $gitUserEmail = git config -- global user.email }
383379 if ($gitUserName )
384380 {
385381 $claudeEnv [" GIT_USER_NAME" ] = $gitUserName
@@ -745,11 +741,10 @@ try
745741 # Start timing the entire process except cleaning
746742 $stopwatch = [System.Diagnostics.Stopwatch ]::StartNew()
747743
748- # Ensure docker context directory exists and contains at least one file (not needed for registry images)
744+ # Ensure docker context directory exists (not needed for registry images)
749745 if (-not $RegistryImage -and -not (Test-Path $dockerContextDirectory ))
750746 {
751- Write-Error " Docker context directory '$dockerContextDirectory ' does not exist."
752- exit 1
747+ New-Item - ItemType Directory - Path $dockerContextDirectory - Force | Out-Null
753748 }
754749
755750
0 commit comments