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
F19156926: D18304.id44011.diff
Dec 13 2025, 12:04 AM
F19098200: D18304.id.diff
Dec 4 2025, 4:03 PM
F19093686: D18304.diff
Dec 3 2025, 10:18 PM
F19052166: D18304.id44011.diff
Nov 28 2025, 3:26 AM
F19027143: D18304.diff
Nov 24 2025, 1:24 PM
F18854183: D18304.diff
Oct 31 2025, 10:10 PM
F18808899: D18304.id44012.diff
Oct 19 2025, 9:39 AM
F18733262: D18304.diff
Sep 30 2025, 10:19 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