Page MenuHomePhabricator

Fix some repository URI handling issues in Git and Mercurial
ClosedPublic

Authored by epriestley on Dec 12 2013, 12:30 AM.
Tags
None
Referenced Files
F19065889: D7759.id17553.diff
Sun, Nov 30, 3:15 AM
F19050645: D7759.diff
Thu, Nov 27, 8:33 PM
F18824497: D7759.id.diff
Oct 23 2025, 3:58 PM
F18821319: D7759.diff
Oct 22 2025, 9:56 PM
F18649483: D7759.diff
Sep 20 2025, 8:53 PM
F17947076: D7759.id17553.diff
Jul 31 2025, 3:38 PM
Unknown Object (File)
May 31 2025, 1:40 AM
Unknown Object (File)
May 10 2025, 1:15 PM
Subscribers

Details

Summary

See https://github.com/facebook/phabricator/issues/467. @dctrwatson also ran into an issue where we were trying to setPass() a GitURI.

  • For Git and Mercurial, properly generate credential URIs where relevant.
  • Don't try to setPass() on Git-style URIs.

This isn't perfect but should clean things up a bit.

Test Plan

Added unit tests. Lots of grep.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley updated this revision to Unknown Object (????).Dec 12 2013, 5:45 PM
  • Add more tests.
  • Ran pull/discover against an HTTP auth remote.