Page MenuHomePhabricator

Composer should set the git origin to gerrit
Open, Needs TriagePublic

Description

We have a bunch of libraries that are hosted on gerrit but the composer package points to Github (for performance, I guess?). When checking these out via composer install --prefer-source, composer will create two upstreams, origin and composer, but both will point to Github. It would be less confusing for would-be contributors if the origin pointed to gerrit.

I don't think there is a simple way to achieve it in composer, but it's always possible via a post-install hook.