fix: disable color in git status output for consistent box rendering

This commit is contained in:
Willie Hung
2026-01-23 21:04:38 +08:00
parent 6dfe1c0c1f
commit dda075cffb
+1 -1
View File
@@ -175,7 +175,7 @@ func IsDirty(repoPath string) (bool, error) {
// GetDirtyFiles returns list of modified files
func GetDirtyFiles(repoPath string) ([]string, error) {
cmd := exec.Command("git", "status", "--short")
cmd := exec.Command("git", "-c", "color.status=false", "status", "--short")
cmd.Dir = repoPath
out, err := cmd.Output()
if err != nil {