Skip to content

Commit 8815b95

Browse files
committed
fix: use --snapshot-id instead of branch in CLI clone command (#657)
1 parent 19a9668 commit 8815b95

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • ui/packages/shared/pages/CreateClone/utils

ui/packages/shared/pages/CreateClone/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const shellEscape = (str: string): string => {
77
}
88

99
export const getCliCreateCloneCommand = (values: FormValues, showPassword?: boolean) => {
10-
const { dbUser, dbPassword, branch, protectionDurationMinutes, cloneId } = values
10+
const { dbUser, dbPassword, snapshotId, protectionDurationMinutes, cloneId } = values
1111

1212
const usernameDisplay = dbUser ? shellEscape(dbUser) : `<USERNAME>`
1313

@@ -25,7 +25,7 @@ export const getCliCreateCloneCommand = (values: FormValues, showPassword?: bool
2525
2626
--password ${passwordDisplay} \
2727
28-
${branch ? `--branch ${shellEscape(branch)}` : ``} \
28+
${snapshotId ? `--snapshot-id ${shellEscape(snapshotId)}` : ``} \
2929
3030
${protectedFlag} \
3131

0 commit comments

Comments
 (0)