Page MenuHomePhabricator

D11096.id26638.diff
No OneTemporary

D11096.id26638.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
Mon, Oct 21, 7:33 PM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6721851
Default Alt Text
D11096.id26638.diff (1 KB)

Event Timeline