byplayer/egg — pull request #59 by jjrussell (2014-05-08 18:26:37+00:00)
Title: Use filename instead of relative path to undo checkout

I get this whenever I use C-x C-v u to undo the checkout of a file I've modified I get

GIT-CHECKOUT:ERROR> error: pathspec 'lib/tasks/db.rake' did not match any file(s) known to git.

With this change it works. It appears as though the full path from the top of the repo doesn't work because the git command is run from the directory where the buffer is. So it needs just the filename in that directory.