Skip to content

Commit

Permalink
Trim parsed branch
Browse files Browse the repository at this point in the history
Otherwise it may contain a trailing \n
  • Loading branch information
gustavohenke committed May 31, 2018
1 parent fa20c93 commit f7724dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/publish-gh-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ 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 ||
Expand Down

0 comments on commit f7724dc

Please sign in to comment.