Fix the "Browse in Diffusion" URI in Differential

Summary: Apparently I spent like a good month copy/pasting slightly different versions of this logic all over the codebase.

Test Plan: Selected "View Options -> Browse in Diffusion" for a chagneset, got a URI with a branch name in it under Git.

Reviewers: vrana, btrahan

Reviewed By: btrahan

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D1993
This commit is contained in:
epriestley
2012-03-22 13:55:35 -07:00
parent e2a457873e
commit 85f19e16dc
3 changed files with 11 additions and 13 deletions

View File

@@ -227,7 +227,7 @@ final class DifferentialChangesetListView extends AphrontView {
$repository = $this->repository;
if ($repository) {
$meta['diffusionURI'] = $repository->getDiffusionBrowseURIForPath(
$meta['diffusionURI'] = (string)$repository->getDiffusionBrowseURIForPath(
$changeset->getAbsoluteRepositoryPath($this->diff, $repository));
}