fix(git): use platform constant

This commit is contained in:
Jan De Dobbeleer 2021-03-07 18:23:09 +01:00 committed by Jan De Dobbeleer
parent 21f97eebd2
commit 6ee998af15

View file

@ -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...)