Files
Pier_v1/RAG/design-model-box-sample_2/deployment/test_launcher_origin.ps1
T
ahnyongjooandClaude Sonnet 5.5 964a841de1 chore(rebar): Pier_T_rebar 작업 폴더 초기 구성 및 외부 의존 파일 통합
- Code\rebar_pipeline, review_pipeline, pier-program을 정션에서 실제 폴더로 전환
- Code\rhino_mcp 및 CLAUDE_rhino배경.md 추가, .mcp.json은 PYTHONPATH로 새 위치 사용
- pier-program 내부 .git 제거(이력은 backup\pier-program_20261028.bundle에 보관)
- worktree 가이드 반영(CLAUDE.local.md, HANDOFF.md)
- D:\Rhino-MCP 경로 참조를 새 위치로 치환

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 11:20:18 +09:00

22 lines
1.1 KiB
PowerShell

$ErrorActionPreference='Stop'
$launcher=Get-Content (Join-Path $PSScriptRoot '../deploy-server.bat')
$line=@($launcher | Where-Object { $_ -like 'powershell *' -and $_ -like '*$lines=@(& git*' })
if ($line.Count -ne 1) { throw 'Origin verification command missing' }
$command=$line[0].Substring($line[0].IndexOf('-Command "')+10).TrimEnd('"')
$env:DMS_REPOSITORY='https://gitea.hmac.kr/is-div/design-model-box-sample_2.git'
$env:DMS_DEPLOY_SOURCE='C:\folder with spaces\deploy-source'
$cases=@(
@{url=$env:DMS_REPOSITORY;code=0;expected=0},
@{url=($env:DMS_REPOSITORY+"`r`n");code=0;expected=0},
@{url='https://example.invalid/other.git';code=0;expected=4},
@{url='';code=128;expected=2}
)
foreach ($case in $cases) {
$env:TEST_ORIGIN=$case.url
$env:TEST_GIT_CODE=[string]$case.code
$mock='function git { $global:LASTEXITCODE=[int]$env:TEST_GIT_CODE; if ($env:TEST_ORIGIN) { $env:TEST_ORIGIN } }; '
& (Join-Path $PSHOME 'pwsh') -NoProfile -Command ($mock+$command)
if ($LASTEXITCODE -ne $case.expected) { throw "Unexpected exit: $LASTEXITCODE" }
}
Write-Host 'PASS: exact origin, line endings, different repository, Git error'