git log output is not colourised

Asked by Robin Green

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:
Last query:
Last reply:

This question was originally filed as bug #1363186.

Revision history for this message
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

Revision history for this message
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.