diff --git a/CHANGELOG.md b/CHANGELOG.md index 102f04b..021e627 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Prune STS headers, permitting local non-SSL access via proxy. Refs STCLI-248. * Turn off `` when running tests. Refs STCLI-256. +* Check for `main` branch in `stripes platform pull` command. Refs STCLI-258. ## [3.2.0](https://github.com/folio-org/stripes-cli/tree/v3.2.0) (2024-10-09) [Full Changelog](https://github.com/folio-org/stripes-cli/compare/v3.1.0...v3.2.0) diff --git a/lib/commands/platform/pull.js b/lib/commands/platform/pull.js index 9c12dba..4dc956e 100644 --- a/lib/commands/platform/pull.js +++ b/lib/commands/platform/pull.js @@ -22,8 +22,8 @@ function pullRepository(dir) { if (status.ahead) { reject(new Error('Branch contains committed changes to push.')); } - if (status.current !== 'master') { - reject(new Error(`Branch is not master. (${status.current})`)); + if (status.current !== 'master' && status.current !== 'main') { + reject(new Error(`Branch is not master or main. (${status.current})`)); } resolve(status); })