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.
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.