libgit2/libgit2 — pull request #978 by nulltoken (2012-10-13 18:55:40+00:00)
Title: reset: prevent hard reset in a bare repository

Fix a bug which was allowing `git_reset(GIT_RESET_HARD)` to try and perform the checkout of the index in a bare repository.

This now fails faster and returns `GIT_EBAREREPO`.