[WIP] adding submit from gh url functionality

...d to pull latest from binstar.org feature/build-from-git-url.
I assumed this happened during the `clone_repo` function:
https://github.com/Binstar/binstar-build-client/pull/5/files#diff-ee3d78874a923536dc34937cdbae0e23R130.
 This occurs before `submit_build` is called.


On Mon, Jun 16, 2014 at 10:18 AM, Sean <notifications@github.com> wrote:

> In binstar_build_client/commands/submit.py:
>
> > +            repo_branch = args.git_url_path.split('/')
> > +            if len(repo_branch) == 2:
> > +                #form of srossross/testci
> > +                repo = '/'.join(repo_branch)
> > +                branch = 'master'
> > +            else:
> > +                #form of srossross/testci/tree/topull
> > +                repo = '/'.join(repo_branch[:2])
> > +                branch = repo_branch[-1]
> > +
> > +            for b in builds:
> > +                b['repo'] = repo
> > +                b['branch'] = branch
> > +
> > +            print "the build, ", builds
> > +            build_no = binstar.submit_for_url_build(args.package.user, args.package.name, builds,
>
> Should we check that this is a valid git url first?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Binstar/binstar-build-client/pull/5/files#r13811053>.
>