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

commands: teach 'unlock' to ignore status errs in appropriate conditions #2475

Merged
merged 1 commit into from Aug 3, 2017

Conversation

ttaylorr
Copy link
Contributor

@ttaylorr ttaylorr commented Aug 3, 2017

This pull request teaches the git lfs unlock command to appropriately respond to errs when calling git.IsFileModified().

In git/git@b9a7d55, Git causes git.IsFileModified() to return an error when asked for the status of files that do not exist. Since this is correct behavior on Git's part, teach unlockAbortIfFileModified to ignore errors when the file does not exist and --force is given.


/cc @git-lfs/core
/cc #2470 #2466

@ttaylorr ttaylorr added this to the v2.3.0 milestone Aug 3, 2017
@ttaylorr ttaylorr requested a review from rubyist August 3, 2017 16:57
@ttaylorr ttaylorr merged commit 86dcf75 into master Aug 3, 2017
@ttaylorr ttaylorr deleted the status-missing-files branch August 3, 2017 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants