Skip to content

Commit b49de4d

Browse files
iamaeroplaneclaude
andcommitted
fix(powershell): use LiteralPath in Get-RepoRoot fallback
Prevents Resolve-Path from treating wildcard characters as patterns. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 028ac2e commit b49de4d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/powershell/common.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ function Get-RepoRoot {
4343
}
4444

4545
# Final fallback to script location for non-git repos
46-
return (Resolve-Path (Join-Path $PSScriptRoot "../../..")).Path
46+
# Use -LiteralPath to handle paths with wildcard characters
47+
return (Resolve-Path -LiteralPath (Join-Path $PSScriptRoot "../../..")).Path
4748
}
4849

4950
function Get-CurrentBranch {

0 commit comments

Comments
 (0)