Skip to main content
Explanation on code meaning
Source Link

I solved the color issue with:

(with-eval-after-load 'magit
  (setq magit-git-environment 
         (append magit-git-environment 
            (list "OVERCOMMIT_COLOR=0"))))

This sets the OVERCOMMIT_COLOR env variable when running the git command, which instructs Overcommit to not format with color codes that magit-process doesn't understand.

I solved the color issue with:

(with-eval-after-load 'magit
  (setq magit-git-environment 
         (append magit-git-environment 
            (list "OVERCOMMIT_COLOR=0"))))

I solved the color issue with:

(with-eval-after-load 'magit
  (setq magit-git-environment 
         (append magit-git-environment 
            (list "OVERCOMMIT_COLOR=0"))))

This sets the OVERCOMMIT_COLOR env variable when running the git command, which instructs Overcommit to not format with color codes that magit-process doesn't understand.

formatting
Source Link
Muihlinn
  • 2.7k
  • 1
  • 15
  • 22

I solved the color issue with:

(with-eval-after-load 'magit
  (setq magit-git-environment 
         (append magit-git-environment 
            (list "OVERCOMMIT_COLOR=0"))))

I solved the color issue with:

(with-eval-after-load 'magit
  (setq magit-git-environment (append magit-git-environment (list "OVERCOMMIT_COLOR=0"))))

I solved the color issue with:

(with-eval-after-load 'magit
  (setq magit-git-environment 
         (append magit-git-environment 
            (list "OVERCOMMIT_COLOR=0"))))
Source Link

I solved the color issue with:

(with-eval-after-load 'magit
  (setq magit-git-environment (append magit-git-environment (list "OVERCOMMIT_COLOR=0"))))