From: martin f. krafft Date: Fri, 30 Jul 2010 20:23:31 +0000 (+0200) Subject: always append .git X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/e00e7f7a1886640cc18d114a48a1ddf75cebdfa4?ds=inline;hp=--cc always append .git --- e00e7f7a1886640cc18d114a48a1ddf75cebdfa4 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