[FABRIC-650] gitOperation only creates a credential provider if really needed. This prevents zookeeper related exceptions when starting datastore.