gitserver: add db connections which are needed for future instantiation of gitserver clients with db connections
Created by: sashaostrikov
Please check me if I accidentally changed any remaining dbutil.DB
code usage to database.DB
-- that was not intended.
This PR propagates DB connection to all necessary places where gitserver.Client
should be instantiated.
In further PR gitserver.DefaultClient
calls will be replaced with gitserver.NewClient
with added database.DB
connection. Current PR makes all the necessary preparations for that.
Part of https://github.com/sourcegraph/sourcegraph/issues/32315
Test plan
Check that no tests are broken