From 909005ffd5bd019ca2ee4375fb768b737a835415 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 16 Jul 2015 18:09:37 +0200 Subject: * tv: http://HOST/cgit/ -> http://cgit.HOST/ --- 4lib/tv/git.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '4lib') diff --git a/4lib/tv/git.nix b/4lib/tv/git.nix index 8dc176114..2b25debdc 100644 --- a/4lib/tv/git.nix +++ b/4lib/tv/git.nix @@ -120,6 +120,7 @@ let port=${toString port} host=$nick + cgit_endpoint=http://cgit.$host empty=0000000000000000000000000000000000000000 @@ -149,15 +150,15 @@ let case $receive_mode in create) #git log --oneline $id2 - link="http://$host/cgit/$GIT_SSH_REPO/?h=$h" + link="$cgit_endpoint/$GIT_SSH_REPO/?h=$h" ;; delete) #git log --oneline $id2 - link="http://$host/cgit/$GIT_SSH_REPO/ ($h)" + link="$cgit_endpoint/$GIT_SSH_REPO/ ($h)" ;; fast-forward|non-fast-forward) #git diff --stat $id..$id2 - link="http://$host/cgit/$GIT_SSH_REPO/diff/?h=$h&id=$id&id2=$id2" + link="$cgit_endpoint/$GIT_SSH_REPO/diff/?h=$h&id=$id&id2=$id2" ;; esac -- cgit v1.2.3