]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/func/giturl
always append .git
[zsh.git] / .zsh / func / giturl
index 26587e2087ad179b3862323afbc6d2c86b06924f..f001308b123f1a99551b0eabcfe63143839caa06 100755 (executable)
@@ -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