The basic problem is that sometimes when I do
git pull upstream master
I get
remote: Counting objects: 172, done. remote: Comp
Instead of setting the PATH variable or using git's full path (once), this should work as well:
git=`which git` git pull
This will assign git to it's full path for consecutive calls. Now, if git is used in another program(like make), it will be able to.