Skip to content

Commit 22ac482

Browse files
Merge pull request #789 from contentstack/fix/CS-38605
Fix/cs 38605
2 parents b461b49 + e7f2299 commit 22ac482

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/contentstack-clone/src/lib/util/clone-handler.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,15 @@ class CloneHandler {
266266
} else {
267267
return reject('Org not found.');
268268
}
269+
} else {
270+
const exportRes = await cloneCommand.execute(new HandleExportCommand(null, this));
271+
await cloneCommand.execute(new SetBranchCommand(null, this));
272+
273+
if (exportRes) {
274+
this.executeDestination().catch(() => {
275+
reject();
276+
});
277+
}
269278
}
270279
return resolve();
271280
} catch (error) {

0 commit comments

Comments
 (0)