mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
fix(git): use platform constant
This commit is contained in:
parent
21f97eebd2
commit
6ee998af15
|
@ -271,7 +271,7 @@ func (g *git) getStatusColor(defaultValue string) string {
|
|||
|
||||
func (g *git) getGitCommandOutput(args ...string) string {
|
||||
gitCommand := "git"
|
||||
if g.env.getRuntimeGOOS() == "windows" {
|
||||
if g.env.getRuntimeGOOS() == windowsPlatform {
|
||||
gitCommand = "git.exe"
|
||||
}
|
||||
args = append([]string{"--no-optional-locks", "-c", "core.quotepath=false", "-c", "color.status=false"}, args...)
|
||||
|
|
Loading…
Reference in a new issue