Fix regex to match whole lines only in Get-GitStatusSetting

Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-08 18:38:59 +00:00
parent 96842bf09e
commit 7df73096d6

View File

@@ -190,7 +190,7 @@ function Show-GitStatus {
function Get-GitStatusSetting { function Get-GitStatusSetting {
$gitConfig = git --no-pager config -l 2>$null | Out-String $gitConfig = git --no-pager config -l 2>$null | Out-String
if ($gitConfig -match 'cmder\.(ps)?status=false') { if ($gitConfig -match '(?m)^cmder\.(ps)?status=false') {
return $false return $false
} }