Skip to content

Commit

Permalink
Fix github link after git split.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Oct 25, 2017
1 parent 349772e commit 3652472
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Components/Helper/ChangeLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ public function changes($log, $options)
public function getChangelog($root)
{
if ($changes = $this->changesFileExists()) {
$hordeInfo = $this->_getHordeInfo();
$blob = trim(
$this->_systemInDirectory(
'git log --format="%H" HEAD^..HEAD',
Expand All @@ -342,7 +343,8 @@ public function getChangelog($root)
)
);
$changes = preg_replace('#^' . $this->_directory . '#', '', $changes);
return 'https://github.com/horde/horde/blob/' . $blob . $root . $changes;
return 'https://github.com/horde/' . $hordeInfo['id'] . '/blob/'
. $blob . $root . $changes;
}
return '';
}
Expand Down

0 comments on commit 3652472

Please sign in to comment.