tests: only check out mastodon master branch (#377)

This commit is contained in:
Nolan Lawson 2018-06-08 21:53:59 -07:00 committed by GitHub
parent 08ad25f677
commit 5139ae3a84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ async function cloneMastodon () {
await stat(mastodonDir)
} catch (e) {
console.log('Cloning mastodon...')
await exec(`git clone ${GIT_URL} "${mastodonDir}"`)
await exec(`git clone --single-branch --branch master ${GIT_URL} "${mastodonDir}"`)
await exec(`git checkout ${GIT_TAG}`, { cwd: mastodonDir })
await writeFile(path.join(dir, '../mastodon/.env'), envFile, 'utf8')
}