From 7ae4532ea7561eda48d7534ae473f23a8ad8bf46 Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Mon, 28 Nov 2016 23:11:31 +0100 Subject: [PATCH] Bitbucket's master branches are default --- lib/git.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git.js b/lib/git.js index 0b1e91e..0cda2c9 100644 --- a/lib/git.js +++ b/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}`