follow symlinks when checking the git branch of a file