Permalink
Browse files

allow your repos to use http protocol in addition to git + ssh

  • Loading branch information...
1 parent 2f6daf8 commit ddfc9a71db2d7c0cac2a64aeaa5e36507cdf5087 @drnic drnic committed Apr 28, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/commands/helpers.rb
View
@@ -3,6 +3,7 @@
helper :user_and_repo_from do |url|
case url
when %r|^git://github\.com/([^/]+/[^/]+)$|: $1.split('/')
+ when %r|^http://github\.com/([^/]+/[^/]+)$|: $1.split('/')
when %r|^(?:ssh://)?(?:git@)?github\.com:([^/]+/[^/]+)$|: $1.split('/')
end
end

0 comments on commit ddfc9a7

Please sign in to comment.