Skip to content

Commit

Permalink
support git+ssh://git@ protocol for github.com remote urls. Closes de…
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Apr 28, 2010
1 parent 8d3863e commit 05b7b0e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/commands/helpers.rb
Expand Up @@ -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

Expand Down

0 comments on commit 05b7b0e

Please sign in to comment.