File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ function detectGitBranch() {
4545 // Netlify
4646 process . env . BRANCH ;
4747 if ( fromEnv ) {
48- console . info ( `Using branch from env ${ fromEnv } ` ) ;
4948 return fromEnv ;
5049 }
5150
@@ -150,7 +149,7 @@ const plugin = function (babel, options = {}) {
150149
151150 // Always use auto-detected values
152151 const repoName = options . repo_name ? options . repo_name : currentRepoName ;
153- const branch = options . branch_name ? options . branch_name : currentRepoName ;
152+ const branch = options . branch_name ? options . branch_name : currentBranch ;
154153
155154 return {
156155 name : "babel-plugin-codepress-html" ,
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ function detectGitBranch() {
5050 // Netlify
5151 process . env . BRANCH ;
5252 if ( fromEnv ) {
53- console . info ( `Using branch from env ${ fromEnv } ` ) ;
5453 return fromEnv ;
5554 }
5655 try {
@@ -154,7 +153,7 @@ const plugin = function (babel, options = {}) {
154153
155154 // Always use auto-detected values
156155 const repoName = options . repo_name ? options . repo_name : currentRepoName ;
157- const branch = options . branch_name ? options . branch_name : currentRepoName ;
156+ const branch = options . branch_name ? options . branch_name : currentBranch ;
158157
159158 return {
160159 name : "babel-plugin-codepress-html" ,
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ function detectGitBranch() {
2222 // Netlify
2323 process . env . BRANCH ;
2424 if ( fromEnv ) {
25- console . info ( `Using branch from env ${ fromEnv } ` ) ;
2625 return fromEnv ;
2726 }
2827 try {
You can’t perform that action at this time.
0 commit comments