Skip to content

Commit

Permalink
Merge pull request #789 from contentstack/fix/CS-38605
Browse files Browse the repository at this point in the history
Fix/cs 38605
  • Loading branch information
abhinav-from-contentstack authored May 16, 2023
2 parents 61ec7a6 + cc79bdb commit a1f71e2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/contentstack-clone/src/lib/util/clone-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,15 @@ class CloneHandler {
} else {
return reject('Org not found.');
}
} else {
const exportRes = await cloneCommand.execute(new HandleExportCommand(null, this));
await cloneCommand.execute(new SetBranchCommand(null, this));

if (exportRes) {
this.executeDestination().catch(() => {
reject();
});
}
}
return resolve();
} catch (error) {
Expand Down

0 comments on commit a1f71e2

Please sign in to comment.