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
F15842818: D7759.diff
Sat, May 31, 1:40 AM
Unknown Object (File)
Sat, May 10, 1:15 PM
Unknown Object (File)
Sat, May 10, 8:29 AM
Unknown Object (File)
Fri, May 9, 2:23 PM
Unknown Object (File)
Thu, May 8, 6:05 PM
Unknown Object (File)
Tue, May 6, 4:37 AM
Unknown Object (File)
Apr 24 2025, 10:58 AM
Unknown Object (File)
Apr 24 2025, 10:57 AM
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

Branch
repouri
Lint
Lint Passed
Unit
Tests Passed

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.