We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b461b49 + e7f2299 commit 22ac482Copy full SHA for 22ac482
1 file changed
packages/contentstack-clone/src/lib/util/clone-handler.js
@@ -266,6 +266,15 @@ class CloneHandler {
266
} else {
267
return reject('Org not found.');
268
}
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
+ }
278
279
return resolve();
280
} catch (error) {
0 commit comments