fix status bug: 'git status' raise 'KeyError' in an empty repository.