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)
Thu, Dec 12, 4:23 PM
Unknown Object (File)
Tue, Dec 10, 4:52 PM
Unknown Object (File)
Mon, Dec 9, 12:49 PM
Unknown Object (File)
Fri, Dec 6, 1:49 PM
Unknown Object (File)
Wed, Nov 27, 8:08 AM
Unknown Object (File)
Wed, Nov 27, 12:13 AM
Unknown Object (File)
Sat, Nov 23, 3:27 AM
Unknown Object (File)
Nov 20 2024, 5:14 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