summaryrefslogtreecommitdiffstats
path: root/4lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-07-16 18:09:37 +0200
committertv <tv@krebsco.de>2015-07-16 22:48:26 +0200
commit4e1141da39ddede6d4f8ce1e51f9aa34811147b4 (patch)
treefcdfd496cba0aa85f2752d0170ec5cf69f88205b /4lib
parent9049df5d9d7272613663e0b19a1a87c6944e47d0 (diff)
* tv: http://HOST/cgit/ -> http://cgit.HOST/
Diffstat (limited to '4lib')
-rw-r--r--4lib/tv/git.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/4lib/tv/git.nix b/4lib/tv/git.nix
index 8dc1761..2b25deb 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