summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Heiko Becker <heirecka@exherbo.org> 2018-03-24 13:35:01 +0100
committerAvatar Heiko Becker <heirecka@exherbo.org> 2018-03-24 13:37:02 +0100
commit6e5c0f1d224b25b64995971d0dd6e47af2bef701 (patch)
tree53bd17c1eea8ae2519b39533f2a125d3a474c0b3
parent4beb351282f475c73f5c6071a003ae9bf6134913 (diff)
downloadwww-6e5c0f1d224b25b64995971d0dd6e47af2bef701.tar.gz
www-6e5c0f1d224b25b64995971d0dd6e47af2bef701.tar.xz
cgit: Remove filter for gerrit
gerrit is gone and redirects to the project page on gitlab.exherbo.org, which makes the "Change-Id"-links quite useless.
-rw-r--r--cgit/cgitrc2
-rwxr-xr-xcgit/filters/gerrit.sh24
2 files changed, 0 insertions, 26 deletions
diff --git a/cgit/cgitrc b/cgit/cgitrc
index 1429c44..0ea4b75 100644
--- a/cgit/cgitrc
+++ b/cgit/cgitrc
@@ -23,8 +23,6 @@ head-include=head.part.tmpl
root-desc=
# these filters must be enabled before scan-path
-commit-filter=/srv/www/git.exherbo.org/cgit/filters/gerrit.sh
-
source-filter=/srv/www/git.exherbo.org/cgit/filters/syntax-highlighting.py
about-filter=/srv/www/git.exherbo.org/cgit/filters/about-formatting.sh
diff --git a/cgit/filters/gerrit.sh b/cgit/filters/gerrit.sh
deleted file mode 100755
index f7ae912..0000000
--- a/cgit/filters/gerrit.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-# This script can be used to generate links in commit messages.
-#
-# To use this script, refer to this file with either the commit-filter or the
-# repo.commit-filter options in cgitrc.
-#
-# The following environment variables can be used to retrieve the configuration
-# of the repository for which this script is called:
-# CGIT_REPO_URL ( = repo.url setting )
-# CGIT_REPO_NAME ( = repo.name setting )
-# CGIT_REPO_PATH ( = repo.path setting )
-# CGIT_REPO_OWNER ( = repo.owner setting )
-# CGIT_REPO_DEFBRANCH ( = repo.defbranch setting )
-# CGIT_REPO_SECTION ( = section setting )
-# CGIT_REPO_CLONE_URL ( = repo.clone-url setting )
-#
-
-regex=''
-
-# This expression generates links to gerrit change-ids
-regex=$regex'
-s|^Change-Id: (I[0-9a-fA-F]{40})$|Change-Id: <a href="https://galileo.mailstation.de/gerrit/#q,\1">\1</a>|'
-
-sed -re "$regex"