On Wed, Jul 18, 2012 at 04:10:19PM -0700, Bart Baker wrote:
> I apologize if this is a repeat post, but I haven't been able to find this
> issue referenced. I'm running git on Ubuntu 12.04. Most of the commands work
> fine, but I'm having trouble with git diff displaying any output. If I run:
> $ git diff
> on a repo that definitely has changes, I do not see any output. If instead
> I run:
> $ sudo git diff
> I get the expected git diff output, spread over multiple pages. I installed
> using apt-get, but there seems to be some sort of permissions error. Is
> a certain git core file that I need to change the permissions on?
Try running `git diff` so that is sees the GIT_TRACE environment
variable set to 1, and post the output here.
$ export GIT_TRACE=1
$ git diff
Do the same for the sudo case; but this should be handled differently
(since, I think, sudo might sanitize the environment):
$ sudo su
# export GIT_TRACE=1
# git diff
You can then try to compare what gets called in each case.
Another question: do you have the PAGER environment variable defined?
IOW, what does
$ echo $PAGER
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at