mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-25 23:17:06 +02:00
Trim and reference branch correctly during deployment (#716)
Otherwise it may contain a trailing \n
This commit is contained in:
parent
48343db7f7
commit
93b2ebb53b
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@ if (!shell.which('git')) {
|
|||
const siteConfig = require(process.cwd() + '/siteConfig.js');
|
||||
const GIT_USER = process.env.GIT_USER;
|
||||
const CURRENT_BRANCH =
|
||||
process.env.CIRCLE_BRANCH || shell.exec('git rev-parse --abbrev-ref HEAD');
|
||||
process.env.CIRCLE_BRANCH ||
|
||||
shell.exec('git rev-parse --abbrev-ref HEAD').stdout.trim();
|
||||
const ORGANIZATION_NAME =
|
||||
process.env.ORGANIZATION_NAME ||
|
||||
process.env.CIRCLE_PROJECT_USERNAME ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue