Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why 'git log' is empty even if log file exists?

Tags:

git

git log does not produces anything even if though ".git/logs/refs/heads" does contain the log entries of recent commits.

System:
I uninstalled and reinstalled the git in my ubuntu installation.

Linux ap 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
like image 737
saremapadhasa Avatar asked Sep 08 '12 07:09

saremapadhasa


1 Answers

I got the same error. The problem was that I defined a default pager at a wrong location in my .bashrc:

export PAGER=/usr/bin/more

Running git log returned no output. I changed the location to /bin/more and it got fixed.

like image 80
Diego Pino Avatar answered Sep 30 '22 20:09

Diego Pino