If you have direct access to the remote repo, you could always use:
git reset --soft
This works since there is no attempt to modify the non-existent working directory. For more details please see the original answer:
How can I uncommit the last commit in a git bare repository?