Page MenuHomePhabricator

Censor credentials possibly present in Git remote URIs when pulls fail because of a URI mismatch
ClosedPublic

Authored by epriestley on Jul 31 2017, 4:42 PM.
Tags
None
Referenced Files
F15429257: D18304.diff
Mon, Mar 24, 1:23 AM
F15410350: D18304.id44012.diff
Wed, Mar 19, 7:07 AM
F15403743: D18304.id44012.diff
Tue, Mar 18, 4:40 AM
F15403104: D18304.diff
Tue, Mar 18, 1:56 AM
F15368096: D18304.id44012.diff
Tue, Mar 11, 11:49 PM
F15367945: D18304.diff
Tue, Mar 11, 10:29 PM
F15365992: D18304.id44011.diff
Tue, Mar 11, 2:16 PM
F15319697: D18304.diff
Thu, Mar 6, 9:24 PM
Subscribers
None

Details

Summary

Fixes T12945.

Test Plan

Mostly faked this, got a censored error:

$ ./bin/repository update R38
[2017-07-31 19:40:13] EXCEPTION: (Exception) Working copy at "/Users/epriestley/dev/core/repo/local/38/" has a mismatched origin URI, "https://********@example.com/". The expected origin URI is "https://github.com/phacility/libphutil.git". Fix your configuration, or set the remote URI correctly. To avoid breaking anything, Phabricator will not automatically fix this. at [<phabricator>/src/applications/repository/engine/PhabricatorRepositoryEngine.php:186]

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable