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
F18566394: D18304.id.diff
Tue, Sep 9, 2:34 PM
F18501349: D18304.diff
Thu, Sep 4, 9:41 PM
F18440648: D18304.id.diff
Sun, Aug 31, 3:53 PM
F18437088: D18304.diff
Sun, Aug 31, 11:45 AM
F18425557: D18304.diff
Sat, Aug 30, 9:58 PM
F18319073: D18304.id44012.diff
Sun, Aug 24, 12:19 PM
F18110280: D18304.id44011.diff
Aug 11 2025, 5:57 PM
F18102959: D18304.id44011.diff
Aug 10 2025, 12:32 AM
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