etc/committer: Disable diff colors.
authorRicardo Wurmus <rekado@elephly.net>
Thu, 8 Apr 2021 15:11:14 +0000 (17:11 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Thu, 8 Apr 2021 15:12:06 +0000 (17:12 +0200)
Reported by: morgansmith on IRC.

* etc/committer.scm.in (diff-info): Invoke "git diff" with "--no-color".

etc/committer.scm.in

index 7991dc7..801b5d1 100755 (executable)
@@ -90,6 +90,7 @@ LINE-NO in PORT."
   "Read the diff and return a list of <hunk> values."
   (let ((port (open-pipe* OPEN_READ
                           "git" "diff"
+                          "--no-color"
                           "--no-prefix"
                           ;; Only include one context line to avoid lumping in
                           ;; new definitions with changes to existing