Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit ddfc9a71db2d7c0cac2a64aeaa5e36507cdf5087 1 parent 2f6daf8
Dr Nic Williams drnic authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/commands/helpers.rb
1  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
Please sign in to comment.
Something went wrong with that request. Please try again.