Tuesday, July 12, 2016

git log exit code 141?




The explanation:

  • Git pipes the logs into less
The background:
  1. http://stackoverflow.com/questions/19120263/why-exit-code-141-with-grep-q
  2. http://www.pixelbeat.org/programming/sigpipe_handling.html
  3. http://unix.stackexchange.com/questions/99112/default-exit-code-when-process-is-terminated/99134#99134


  1. Is there any way to fix the exit code so that it is 0?

    1. Yes, change your git pager configuration to just `less`

    2. I have tried setting core.pager to 'less' as well as removing all color-related env vars, and I continue to get error 141 when I quit 'git log'. Any more ideas?

    3. I set "pager = cat | less" to force all of stdin to be read before passing it to less


  2. This bug can be seen often. Hope you were able to resolve this issue.

    Please click on the link below.
    Best Advanced Excel classes in Bangalore
