Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13966396
D8055.id18223.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.id18223.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
Thu, Oct 17, 7:53 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6713605
Default Alt Text
D8055.id18223.diff (901 B)
Attached To
Mode
D8055: When repairing Git remote URIs, include credentials
Attached
Detach File
Event Timeline
Log In to Comment