Page MenuHomePhabricator

D11096.id.diff
No OneTemporary

D11096.id.diff

diff --git a/src/applications/diffusion/view/DiffusionPushLogListView.php b/src/applications/diffusion/view/DiffusionPushLogListView.php
--- a/src/applications/diffusion/view/DiffusionPushLogListView.php
+++ b/src/applications/diffusion/view/DiffusionPushLogListView.php
@@ -52,6 +52,15 @@
$event_id = $log->getPushEvent()->getID();
$callsign = $log->getRepository()->getCallsign();
+ $old_ref_link = null;
+ if ($log->getRefOld() != DiffusionCommitHookEngine::EMPTY_HASH) {
+ $old_ref_link = phutil_tag(
+ 'a',
+ array(
+ 'href' => '/r'.$callsign.$log->getRefOld(),
+ ),
+ $log->getRefOldShort());
+ }
$rows[] = array(
phutil_tag(
'a',
@@ -70,12 +79,7 @@
$log->getPushEvent()->getRemoteProtocol(),
$log->getRefType(),
$log->getRefName(),
- phutil_tag(
- 'a',
- array(
- 'href' => '/r'.$callsign.$log->getRefOld(),
- ),
- $log->getRefOldShort()),
+ $old_ref_link,
phutil_tag(
'a',
array(

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 17, 11:19 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6721851
Default Alt Text
D11096.id.diff (1 KB)

Event Timeline