Page MenuHomePhabricator

Clone command specified in gittiles doesn't work in most cases
Closed, DuplicatePublic


At the page advises us to use git clone ssh://

Actual Result

This command will only work if and only if the gerrit username of the user is the same as the name of the user they are currently logged in as inside their computer.

Expected Result

The command should be like git clone when no user is logged in and should be something like git clone ssh://<gerrit username> if a user is logged in.

Event Timeline

hashar added a project: Upstream.
hashar subscribed.

I guess we just assume that people have some local ssh config to set the appropriate username:

Host, *
    User <gerrit username>

The Gerrit plugin for gitiles crafts the URL after the ssh address in the Gerrit configuration:

    listenAddress =

And the code does not seem to support inserting the username.

The feature request can be filed upstream at requesting an enhancement to the gitiles plugin.

It seems Google's own instance does advertise https:

Clone this repo:
git clone

Perhaps it is already configurable?

They disabled ssh @Krinkle. As in they don't allow ssh so i think gitiles picks that up so shows https.