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
Unknown Object (File)
Sat, Apr 20, 8:38 PM
Unknown Object (File)
Fri, Apr 5, 12:42 PM
Unknown Object (File)
Tue, Apr 2, 1:15 AM
Unknown Object (File)
Mar 23 2024, 2:01 AM
Unknown Object (File)
Jan 22 2024, 10:31 PM
Unknown Object (File)
Dec 25 2023, 11:21 AM
Unknown Object (File)
Dec 20 2023, 4:45 AM
Unknown Object (File)
Dec 9 2023, 6:27 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