From 317914838f9498389f0c3c64ba63fb6630fbff06 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Wed, 26 Jan 2022 22:24:56 -0500 Subject: [PATCH] fix(tests): presets --- tests/presets.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/presets.test.js b/tests/presets.test.js index 6b953f49..ad7bcb7f 100644 --- a/tests/presets.test.js +++ b/tests/presets.test.js @@ -13,7 +13,11 @@ try { fss.accessSync(__presets) } catch { - processes.execSync(`git clone https://github.com/lowlighter/metrics.git ${__presets} --branch presets --single-branch`) + let {HEAD_REF:branch, REPO:repo} = process.env + branch = branch || "presets" + repo = repo || "lowlighter/metrics" + console.log(`cloning: ${repo}@${branch}`) + processes.execSync(`git clone https://github.com/${repo}.git ${__presets} --branch ${branch} --single-branch`) } //Generate presets examples