X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/95596bda0de59feb3ddac135fbcc8720a083a86f..e00e7f7a1886640cc18d114a48a1ddf75cebdfa4:/.zsh/func/giturl?ds=inline diff --git a/.zsh/func/giturl b/.zsh/func/giturl index 26587e2..f001308 100755 --- a/.zsh/func/giturl +++ b/.zsh/func/giturl @@ -18,7 +18,10 @@ REMOTE=$(git config --get remote.origin.url) local part case "$REMOTE" in - madduck:pub/*) part="${REMOTE#madduck:pub/}";; + madduck:pub/*) + part="${REMOTE#madduck:pub/}" + part="${part%.git}.git" + ;; *) echo >&2 "E: I do not know how to translate $REMOTE into a gitweb URL." return 1