1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-24 15:52:41 +01:00
phorge-phorge/src/applications/repository/daemon
epriestley 839f3df9c2 Stop trasforming "scp-style" URIs into normal URIs in Git
Summary:
See D3033, T1529. We currently transform "scp-style" `user@host:path` URIs into normal `ssh://user@host/path` URIs. This is undesirable for two reasons:

  - The paths aren't always equivalent. They are for GitHub, which is why I missed this originally, but in the general case the ":path" is resolved relatively and the "/path" is resolved absolutely. So this transformation can break things.
  - It confuses users, who do not think of "git@host:path" URIs as SSH URIs even though the SSH protocol is implied.

So stop using them, and just use the "git@host:path" URIs instead. This is a bit messy since we have some validation built up on top of URIs. Hopefully we can get rid of more of this in the future as we simplify repository management.

Test Plan: Unit tests cover this stuff pretty well. Made a new git repository with a "git@host:path" style URI and did pull/discover on it, verified the right URI was used.

Reviewers: btrahan, vrana

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T1529

Differential Revision: https://secure.phabricator.com/D3036
2012-07-23 12:05:03 -07:00
..
__tests__ Move files in Phabricator one level up 2012-06-01 12:32:44 -07:00
PhabricatorGitGraphStream.php Use subprocess output streaming to improve performance of Git commit discovery 2012-06-25 15:21:48 -07:00
PhabricatorMercurialGraphStream.php Move files in Phabricator one level up 2012-06-01 12:32:44 -07:00
PhabricatorRepositoryPullLocalDaemon.php Stop trasforming "scp-style" URIs into normal URIs in Git 2012-07-23 12:05:03 -07:00