Accept an http URL as a repository location

On Wed, Jul 23, 2014 at 10:50:28AM -0700, Paul Jimenez wrote:
> > @@ -702,6 +702,9 @@ class CloneCmd (object):
> >  	@classmethod
> >  	def run(cls, parser, args):
> >  		upstream = args.repository
> > +                if upstream.startswith('http') and upstream.endswith('.git'):
> 
> okay, so how about `if '://' in upstream` ?

Still not good enough. At least for SSH URLs, which are like:
git@github.com:sociomantic/git-hub.git

For HTTP urls just use `urlparse`, why reinventing the wheel (and ending
up with a squared wheel :)? You can even have it almost transparent,
urlparse('sociomantic/ocean') will give you `sociomantic/ocean` as path
anyway, so you can apply the parsing without even checking if it is an
URL or not.