Silence errors when in git repository before initial commit