Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use filename instead of relative path to undo checkout #59

Merged
merged 1 commit into from May 9, 2014

Conversation

jjrussell
Copy link

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 added a commit that referenced this pull request May 9, 2014
Use filename instead of relative path to undo checkout
@byplayer byplayer merged commit 9aaa20d into byplayer:master May 9, 2014
@byplayer
Copy link
Owner

byplayer commented May 9, 2014

Thanks !

@jjrussell jjrussell deleted the fix/undo-checkout branch May 9, 2014 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants