Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14417453
D14044.id33964.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
869 B
Referenced Files
None
Subscribers
None
D14044.id33964.diff
View Options
diff --git a/src/applications/diffusion/controller/DiffusionRepositoryController.php b/src/applications/diffusion/controller/DiffusionRepositoryController.php
--- a/src/applications/diffusion/controller/DiffusionRepositoryController.php
+++ b/src/applications/diffusion/controller/DiffusionRepositoryController.php
@@ -302,7 +302,16 @@
$info = null;
$drequest = $this->getDiffusionRequest();
- if ($drequest->getRefAlternatives()) {
+
+ // Try to load alternatives. This may fail for repositories which have not
+ // cloned yet. If it does, just ignore it and continue.
+ try {
+ $alternatives = $drequest->getRefAlternatives();
+ } catch (ConduitClientException $ex) {
+ $alternatives = array();
+ }
+
+ if ($alternatives) {
$message = array(
pht(
'The ref "%s" is ambiguous in this repository.',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 1:11 AM (10 h, 20 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6928092
Default Alt Text
D14044.id33964.diff (869 B)
Attached To
Mode
D14044: Fix abrupt failure mode for uncloned repositories in Diffusion
Attached
Detach File
Event Timeline
Log In to Comment