From 21df65ccf4d7dd7f5c498667fea1c2272cc2bfec Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 18 Oct 2010 17:09:34 -0400 Subject: [PATCH] BF: giturl -- support SSH access URLs for github, i.e. git@github.com:ORGANIZATON/PROJECT --- .zsh/func/giturl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.zsh/func/giturl b/.zsh/func/giturl index 04f998f..171c4da 100755 --- a/.zsh/func/giturl +++ b/.zsh/func/giturl @@ -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 -- 2.39.5