X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/ca35935553d869d81ece0438e76633632fd707d8..e54f33f71ea6d96b1e2eafa445af4dd0fa9fe10a:/.zsh/func/giturl 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