Re: [git-users] diff on ubuntu 12.04
This is just to see what the system thinks your pager is. $ type pager # type pager Hi Konstantin, Thanks a lot for your help with this. This (above) was the key right here. At some point, I had put the dir that I had installed R at the front of my $PATH variable instead of at the end, so it attempting to use the R pager instead of /usr/bin/less. I changed this and now I no longer need sudo to access this git function. Thanks again, Bart -- 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 git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
Re: [git-users] diff on ubuntu 12.04
On Thu, Jul 19, 2012 at 07:40:42AM +0400, Konstantin Khomoutov wrote: 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 git using apt-get, but there seems to be some sort of permissions error. Is there 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. Thanks for your help. I'll paste the respective output below: Like this: $ export GIT_TRACE=1 $ git diff $ export GIT_TRACE=1 $ git diff trace: built-in: git 'diff' trace: run_command: 'pager' trace: exec: 'pager' $ sudo su # export GIT_TRACE=1 # git diff trace: built-in: git 'diff' trace: run_command: 'pager' trace: exec: 'pager' diff --git a/tp_proj.py b/tp_proj.py index 3adcb6d..85b98f5 100644 --- a/tp_proj.py +++ b/tp_proj.py @@ -16,6 +16,8 @@ from operator import itemgetter from scipy import optimize import scipy.linalg as la +#test + #for sending email import smtplib import string # exit exit Another question: do you have the PAGER environment variable defined? IOW, what does $ echo $PAGER output? $ echo $PAGER There was not output returned for 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 git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
Re: [git-users] diff on ubuntu 12.04
On Thu, Jul 19, 2012 at 06:04:32PM -0400, Bart Baker wrote: [...] Try running `git diff` so that is sees the GIT_TRACE environment variable set to 1, and post the output here. [...] $ sudo su # export GIT_TRACE=1 # git diff trace: built-in: git 'diff' trace: run_command: 'pager' trace: exec: 'pager' diff --git a/tp_proj.py b/tp_proj.py index 3adcb6d..85b98f5 100644 --- a/tp_proj.py +++ b/tp_proj.py [...] Can you please verify you do have sensible permissions on your work tree files and the stuff under .git? Sounds a bit insane, but people repeatedly post questions on SO having problems after cloning a repo as root (for bizzare reasons) and then attempting to work with it as a regular user. (Well, Git usually seems to complain about this loudly but let's pretend your case is special.) The simplest way to check is to run $ ls -lR | less in your work tree and look for something suspicious. A more elaborate and automated way would be to run $ find . \! \( -user you -a -group you \) -print in your work tree with you replaced by your user name and primary group name (or whatever group your project directory is supposed to have; usually it's the same as your user name). Another question: do you have the PAGER environment variable defined? [...] There was not output returned for echo $PAGER Okay, this means you have a /usr/bin/pager symlink maintained by the system. Please now show the results of running the following commands. $ update-alternatives --display pager This is just to see what the system thinks your pager is. $ type pager # type pager See if they differ. They shouldn't, but if they do, this would explain much. $ echo $PATH # echo $PATH Actually, this is only interesting if you and root see different pagers. -- 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 git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
[git-users] diff on ubuntu 12.04
Hello, 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 git using apt-get, but there seems to be some sort of permissions error. Is there a certain git core file that I need to change the permissions on? Thank you, Bart -- You received this message because you are subscribed to the Google Groups Git for human beings group. To view this discussion on the web visit https://groups.google.com/d/msg/git-users/-/HLdAMcHPUQYJ. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
Re: [git-users] diff on ubuntu 12.04
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 git using apt-get, but there seems to be some sort of permissions error. Is there 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. Like this: $ 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 output? -- 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 git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.