Skip to content
Browse files

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

  • Loading branch information...
1 parent 8174135 commit 401ba41bedf5b7d03bde7fed82f7ecb28ef81da0 @drnic drnic committed Apr 28, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/commands/helpers.rb
View
5 lib/commands/helpers.rb
@@ -4,9 +4,8 @@
case url
when %r|^git://github\.com/([^/]+/[^/]+)$|: $1.split('/')
when %r|^http://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('/')
+ when %r|^(?:git\+ssh://)?(?:git@)?github\.com/([^/]+/[^/]+)$|: $1.split('/')
+ when %r|^(?:ssh://)?(?:git@)?github\.com:([^/]+/[^/]+)$|: $1.split('/')
end
end

0 comments on commit 401ba41

Please sign in to comment.
Something went wrong with that request. Please try again.