Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13958903
D8055.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
901 B
Referenced Files
None
Subscribers
None
D8055.diff
View Options
Index: src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
===================================================================
--- src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
+++ src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
@@ -303,10 +303,10 @@
// Fix remote origin url if it doesn't match our configuration
$origin_url = $repository->execLocalCommand(
'config --get remote.origin.url');
- $remote_uri = $repository->getDetail('remote-uri');
- if ($origin_url != $remote_uri) {
+ $remote_uri = $repository->getRemoteURIEnvelope();
+ if ($origin_url != $remote_uri->openEnvelope()) {
$repository->execLocalCommand(
- 'remote set-url origin %s',
+ 'remote set-url origin %P',
$remote_uri);
}
} else if ($err) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 15, 4:57 PM (4 w, 10 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6713605
Default Alt Text
D8055.diff (901 B)
Attached To
Mode
D8055: When repairing Git remote URIs, include credentials
Attached
Detach File
Event Timeline
Log In to Comment