http://rewoo.wordpress.com/2012/02/14/recover-a-corrupt-git-bare-repository/