git log output is not colourised

Asked by Robin Green on 2014-08-29

git log shows output in the pager with ESC cluttering up the output instead of proper colourised output.

However, I built the same version of git from source myself and it now works.

Ubuntu 14.04.1 LTS
git 1.9.1-1

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu git Edit question
Assignee:
No assignee Edit question
Solved by:
Robin Green
Solved:
2014-08-29
Last query:
2014-08-29
Last reply:
2014-08-29

This question was originally filed as bug #1363186.

Robin Green (greenrd) said : #1

git log shows output in the pager with ESC cluttering up the output instead of proper colourised output.

However, I built the same version of git from source myself and it now works.

Ubuntu 14.04.1 LTS
git 1.9.1-1

Robin Green (greenrd) said : #2

It turns out this is not related to whether I am using self-built git or not.

I had the LESS environment variable set, without the R option in it, which implements this. Without the LESS environment variable set, or with it set to the same value that git sets it to if no value is set for it, it works.