aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <kylie@somas.is>2020-09-10 01:56:46 -0400
committerKylie McClain <kylie@somas.is>2020-09-10 01:56:46 -0400
commit46a7e12ebd73256401d73ee8ced34a62e5131470 (patch)
tree56a3c7db402e7c11f8098d8cb56f5e0ba52dac24
parentd05c50e666b36506f3d7b62b4e305a7904dad14c (diff)
downloadgitolite-admin-46a7e12ebd73256401d73ee8ced34a62e5131470.tar.gz
gitolite-admin-46a7e12ebd73256401d73ee8ced34a62e5131470.tar.xz
gitolite-admin-46a7e12ebd73256401d73ee8ced34a62e5131470.zip
hooks/irccat: adjust for changes to nginx URL rewriting
-rwxr-xr-xlocal/hooks/repo-specific/irccat7
1 files changed, 4 insertions, 3 deletions
diff --git a/local/hooks/repo-specific/irccat b/local/hooks/repo-specific/irccat
index 5cc2b81..a358940 100755
--- a/local/hooks/repo-specific/irccat
+++ b/local/hooks/repo-specific/irccat
@@ -22,19 +22,20 @@ while read -r oldrev newrev ref; do
refs/heads/*)
ref=$(printf '%s\n' "${ref}" | cut -d/ -f3)
if [ "${oldrev}" = 0000000000000000000000000000000000000000 ]; then
- msg "%PINK${GL_REPO}%NORMAL:%DGREEN${ref}%NORMAL %BLUE${url}/%YELLOW${ref}%NORMAL branch created starting from %YELLOW${newrev_abbr}"
+ msg "%PINK${GL_REPO}%NORMAL:%DGREEN${ref}%NORMAL %BLUE${url}/b/%YELLOW${ref}%NORMAL branch created starting from %YELLOW${newrev_abbr}"
else
git \
log \
--reverse \
- --format="%%PINK${GL_REPO}%%NORMAL:%%DGREEN${ref} %%BLUE${url}/%%YELLOW%h %%DGREEN%aN%%NORMAL: %s" "${oldrev_abbr}".."${newrev_abbr}" \
+ --format="%%PINK${GL_REPO}%%NORMAL:%%DGREEN${ref} %%BLUE${url}/c/%%YELLOW%h %%DGREEN%aN%%NORMAL: %s" \
+ "${oldrev_abbr}".."${newrev_abbr}" \
| msg_stdin
fi
;;
refs/tags/*)
ref=$(printf '%s\n' "${ref}" | cut -d/ -f3)
- msg "%PINK${GL_REPO}%NORMAL:%DGREEN${ref}%NORMAL %BLUE${url}/%YELLOW${ref}%NORMAL tag created"
+ msg "%PINK${GL_REPO}%NORMAL:%DGREEN${ref}%NORMAL %BLUE${url}/t/%YELLOW${ref}%NORMAL tag created"
;;
esac) &
done