mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 20:34:19 +00:00
fix: disable color in git status output for consistent box rendering
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user