From e00e7f7a1886640cc18d114a48a1ddf75cebdfa4 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 30 Jul 2010 22:23:31 +0200 Subject: [PATCH 1/1] always append .git --- .zsh/func/giturl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5