From 24bc224955ecc4a3ed6d2fc2c17fc63dd8cfc720 Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Thu, 29 Aug 2024 15:27:36 +0530 Subject: [PATCH] fix: error in branch disabled org --- .../contentstack-import/src/utils/import-config-handler.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/contentstack-import/src/utils/import-config-handler.ts b/packages/contentstack-import/src/utils/import-config-handler.ts index 568d686f4a..0b56897958 100644 --- a/packages/contentstack-import/src/utils/import-config-handler.ts +++ b/packages/contentstack-import/src/utils/import-config-handler.ts @@ -78,9 +78,7 @@ const setupConfig = async (importCmdFlags: any): Promise => { 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'];