summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-06-19 18:34:50 +0200
committertv <tv@krebsco.de>2015-06-19 18:34:50 +0200
commit618b19b1ee86f7660c0e2b42a6d087da10917b32 (patch)
tree4ca8074e73e428404e5a52dbbd838f40ca4c726f /lib
parent7dfee2c2404d9ad5d73c74ee484eb1c999b43afb (diff)
lib git: s/cd/$host/
Diffstat (limited to 'lib')
-rw-r--r--lib/git.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/git.nix b/lib/git.nix
index 978fabb..8dc1761 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"