Permalink
Browse files

support git+ssh protocol for github.com remote urls. Closes #6

  • Loading branch information...
drnic committed Apr 28, 2010
1 parent 5e40c92 commit 81741358d0f8973ab02cb7773d36662823504b1d
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/commands/helpers.rb
View
@@ -4,7 +4,9 @@
case url
when %r|^git://github\.com/([^/]+/[^/]+)$|: $1.split('/')
when %r|^http://github\.com/([^/]+/[^/]+)$|: $1.split('/')
- when %r|^(?:ssh://)?(?:git@)?github\.com:([^/]+/[^/]+)$|: $1.split('/')
+ when %r|^git\+ssh://github\.com/([^/]+/[^/]+)$|: $1.split('/')
+ when %r|^git@github\.com:([^/]+/[^/]+)$|: $1.split('/')
+ when %r|^ssh://github\.com:([^/]+/[^/]+)$|: $1.split('/')
end
end

0 comments on commit 8174135

Please sign in to comment.