X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/ca35935553d869d81ece0438e76633632fd707d8..f06c00f74d9c93b62669d0076812323a665729c0:/.zsh/func/giturl?ds=sidebyside diff --git a/.zsh/func/giturl b/.zsh/func/giturl old mode 100755 new mode 100644 index 04f998f..5f29ac0 --- a/.zsh/func/giturl +++ b/.zsh/func/giturl @@ -9,7 +9,7 @@ # Released under the terms of the Artistic Licence 2.0 # Contributions from Yaroslav O. Halchenko # -# Source repository: git://git.madduck.net/etc/zsh.git +# Source repository: http://git.madduck.net/v/etc/zsh.git # local branch remote remote_name @@ -38,11 +38,11 @@ case "$remote" in part="${part%.git}.git" style=gitweb_old ;; - github:*|*://github.com/*|*@github.com/*) + github:*|*://github.com/*|*@github.com[/:]*) gitweb_base=http://github.com part="${remote#github:}" part="${part#*://github.com/}" - part="${part#*@github.com/}" + part="${part#*@github.com[:/]}" part="${part%.git}" style=github commitkw=commit