byplayer / egg

Emacs Got Git. This is a clone of Marius's excellent magit. Egg is an emacs interface to git.
bogolisk.blogspot.com
97 stars 20 forks source link

Use filename instead of relative path to undo checkout #59

Closed jjrussell closed 10 years ago

jjrussell commented 10 years ago

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.

byplayer commented 10 years ago

Thanks !