reset: unbreak hard resets with GIT_WORK_TREE