Browse Source

Bitbucket's master branches are default

master
Leo Lamprecht 8 years ago
parent
commit
7ae4532ea7
No known key found for this signature in database GPG Key ID: B08517883D5E0E10
  1. 2
      lib/git.js

2
lib/git.js

@ -18,7 +18,7 @@ const downloadRepo = async repoPath => {
url = `https://gitlab.com/${pathParts.main}/repository/archive.tar` + ref
break
case 'Bitbucket':
url = `https://bitbucket.org/${pathParts.main}/get/${pathParts.ref || 'master'}.zip`
url = `https://bitbucket.org/${pathParts.main}/get/${pathParts.ref || 'default'}.zip`
break
default:
url = `https://api.github.com/repos/${pathParts.main}/tarball/${pathParts.ref}`

Loading…
Cancel
Save