Skip to content

Commit a1def71

Browse files
CopilotDRSDavidSoft
andcommitted
Restore posh-git support for all versions in Import-Git
Co-authored-by: DRSDavidSoft <[email protected]>
1 parent 456ddcc commit a1def71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vendor/psmodules/Cmder.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,10 @@ function Import-Git {
176176
return $false
177177
}
178178

179+
# Import posh-git module (works for all versions)
179180
Import-Module Posh-Git -ErrorAction SilentlyContinue | Out-Null
180181

182+
# Apply version-specific settings for posh-git 1.0.0+
181183
if (($gitModule.Version -ge [version]"1.0.0") -and (Get-Variable -Name GitPromptSettings -ErrorAction SilentlyContinue)) {
182184
$GitPromptSettings.AnsiConsole = $false
183185
}

0 commit comments

Comments
 (0)