patch bug where existing git repo brok init method