recover from broken .git