byplayer/egg — pull request #29 by abayer (2012-01-23 21:38:54+00:00)
Title: Fix for when git repo is under a symlink

If the git repo is under a symlink (say, its canonical location is /foo/bar, but /home/user/foo is a symlink to /foo) and you open a file from the symlinked location (i.e., /home/user/foo/bar/somefile), the git commands will fail as buffer-file-name returns /home/user/foo/bar/somefile, but git barfs since it's being run from /foo/bar. This change makes sure that egg-buf-git-name wraps the buffer-file-name output with file-truename.