Commit a280f899 authored by Marco Villegas's avatar Marco Villegas Committed by Marco Villegas
Browse files

Use revision as the hash used on the item view url for cgit.

parent 366e7de1
Loading
Loading
Loading
Loading
+1 −1
Changes for includes/plugins/webviewer_url_handlers/VersioncontrolRepositoryUrlHandlerCgit.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ class VersioncontrolRepositoryUrlHandlerCgit extends VersioncontrolRepositoryUrl
    $placeholders = array(
      '%repo_name' => $this->repository->name,
      '%path'     => substr($item->path, 1),
      '%revision' => $item->blob_hash,
      '%revision' => $item->revision,
    );

    if (isset($current_label->type) && $current_label->type == VERSIONCONTROL_LABEL_BRANCH) {