Skip to content

Commit

Permalink
fix(git): use platform constant
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Mar 7, 2021
1 parent 21f97ee commit 6ee998a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/segment_git.go
Expand Up @@ -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...)
Expand Down

0 comments on commit 6ee998a

Please sign in to comment.