dannycoates / able

A/B testing service
http://dannycoates.github.io/able/
3 stars 4 forks source link

Issue with using branches other than 'master', cannot clone. #6

Closed vladikoff closed 9 years ago

vladikoff commented 9 years ago

Seems like the https_url is not the right one to use here: https://github.com/dannycoates/able/blob/master/project.js#L25

Project.prototype.pull = function (cb) {
  gitUtil.cloneOrFetch(
    this.git.https_url,
    this.root,
    this.git.branch,
    cb
  )
}
{ user: 'mozilla',
  repo: 'fxa-content-experiments',
  branch: 'dev',
  tarball_url: 'https://api.github.com/repos/mozilla/fxa-content-experiments/tarball/dev',
  https_url: 'https://github.com/mozilla/fxa-content-experiments/tree/dev',
  travis_url: 'https://travis-ci.org/mozilla/fxa-content-experiments?branch=dev',
  api_url: 'https://api.github.com/repos/mozilla/fxa-content-experiments' }
git clone -b dev https://github.com/mozilla/fxa-content-experiments/tree/dev /Users/vladikoff/mozilla/fxa-local-dev/fxa-content-server/experiments
fxa-content-server.route.500.ERROR: Error: Command failed: Cloning into '/Users/vladikoff/mozilla/fxa-local-dev/fxa-content-server/experiments'...
fatal: repository 'https://github.com/mozilla/fxa-content-experiments/tree/dev/' not found

It tries to clone https://github.com/mozilla/fxa-content-experiments/tree/dev which is not a repository :(