From 71d04007a870e0ed8bd80cdffa93bed5bb80f95b Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 19 Jun 2015 18:34:50 +0200 Subject: [PATCH] lib git: s/cd/$host/ --- lib/git.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/git.nix b/lib/git.nix index 978fabba8..8dc176114 100644 --- a/lib/git.nix +++ b/lib/git.nix @@ -119,6 +119,8 @@ let server=${escapeShellArg server} port=${toString port} + host=$nick + empty=0000000000000000000000000000000000000000 unset message @@ -147,19 +149,18 @@ let case $receive_mode in create) #git log --oneline $id2 - link="http://cd/cgit/$GIT_SSH_REPO/?h=$h" + link="http://$host/cgit/$GIT_SSH_REPO/?h=$h" ;; delete) #git log --oneline $id2 - link="http://cd/cgit/$GIT_SSH_REPO/ ($h)" + link="http://$host/cgit/$GIT_SSH_REPO/ ($h)" ;; fast-forward|non-fast-forward) #git diff --stat $id..$id2 - link="http://cd/cgit/$GIT_SSH_REPO/diff/?h=$h&id=$id&id2=$id2" + link="http://$host/cgit/$GIT_SSH_REPO/diff/?h=$h&id=$id&id2=$id2" ;; esac - #host=$nick #$host $GIT_SSH_REPO $ref $link message="''${message+$message }$GIT_SSH_USER $receive_mode $link"