Page MenuHomePhabricator

D14044.id33964.diff
No OneTemporary

D14044.id33964.diff

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

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)

Event Timeline