Skip to content

Commit

Permalink
Merge pull request #1533 from contentstack/fix/DX-1326
Browse files Browse the repository at this point in the history
fix: error in branch disabled org
  • Loading branch information
aman19K authored Aug 29, 2024
2 parents 81ac9df + 348def1 commit 85f5bed
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ const setupConfig = async (importCmdFlags: any): Promise<ImportConfig> => {

if (importCmdFlags['branch']) {
config.branchName = importCmdFlags['branch'];
config.branchDir = path.join(sanitizePath(config.contentDir), sanitizePath(config.branchName));
} else {
config.branchName = 'main';
config.branchDir = config.contentDir;
}
if (importCmdFlags['module']) {
config.moduleName = importCmdFlags['module'];
Expand Down

0 comments on commit 85f5bed

Please sign in to comment.