lib git: s/cd/$host/
This commit is contained in:
parent
7bd4d6f420
commit
71d04007a8
|
@ -119,6 +119,8 @@ let
|
||||||
server=${escapeShellArg server}
|
server=${escapeShellArg server}
|
||||||
port=${toString port}
|
port=${toString port}
|
||||||
|
|
||||||
|
host=$nick
|
||||||
|
|
||||||
empty=0000000000000000000000000000000000000000
|
empty=0000000000000000000000000000000000000000
|
||||||
|
|
||||||
unset message
|
unset message
|
||||||
|
@ -147,19 +149,18 @@ let
|
||||||
case $receive_mode in
|
case $receive_mode in
|
||||||
create)
|
create)
|
||||||
#git log --oneline $id2
|
#git log --oneline $id2
|
||||||
link="http://cd/cgit/$GIT_SSH_REPO/?h=$h"
|
link="http://$host/cgit/$GIT_SSH_REPO/?h=$h"
|
||||||
;;
|
;;
|
||||||
delete)
|
delete)
|
||||||
#git log --oneline $id2
|
#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)
|
fast-forward|non-fast-forward)
|
||||||
#git diff --stat $id..$id2
|
#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
|
esac
|
||||||
|
|
||||||
#host=$nick
|
|
||||||
#$host $GIT_SSH_REPO $ref $link
|
#$host $GIT_SSH_REPO $ref $link
|
||||||
message="''${message+$message
|
message="''${message+$message
|
||||||
}$GIT_SSH_USER $receive_mode $link"
|
}$GIT_SSH_USER $receive_mode $link"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user