We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 722e167 commit 57ef031Copy full SHA for 57ef031
1 file changed
packages/contentstack-clone/src/lib/util/clone-handler.js
@@ -267,6 +267,14 @@ class CloneHandler {
267
return reject('Org not found.');
268
}
269
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
return resolve();
279
} catch (error) {
280
return reject(error);
0 commit comments