Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15334053
D16972.id40843.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
956 B
Referenced Files
None
Subscribers
None
D16972.id40843.diff
View Options
diff --git a/src/applications/diffusion/editor/DiffusionURIEditor.php b/src/applications/diffusion/editor/DiffusionURIEditor.php
--- a/src/applications/diffusion/editor/DiffusionURIEditor.php
+++ b/src/applications/diffusion/editor/DiffusionURIEditor.php
@@ -462,6 +462,11 @@
->withRepositories(array($repository))
->execute();
+ // Reattach the current URIs to the repository: we're going to rebuild
+ // the index explicitly below, and want to include any changes made to
+ // this URI in the index update.
+ $repository->attachURIs($uris);
+
$observe_uri = null;
foreach ($uris as $uri) {
if ($uri->getIoType() != PhabricatorRepositoryURI::IO_OBSERVE) {
@@ -488,6 +493,9 @@
$repository->save();
+ // Explicitly update the URI index.
+ $repository->updateURIIndex();
+
$is_hosted = $repository->isHosted();
// If we've swapped the repository from hosted to observed or vice versa,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 9, 6:30 AM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7387099
Default Alt Text
D16972.id40843.diff (956 B)
Attached To
Mode
D16972: Explicitly update the repository URI index after making a URI edit
Attached
Detach File
Event Timeline
Log In to Comment