Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Inconsistent branch creation behaviour #1185

Closed
louiskhub opened this issue Sep 19, 2023 · 0 comments · Fixed by #1210
Closed

CLI: Inconsistent branch creation behaviour #1185

louiskhub opened this issue Sep 19, 2023 · 0 comments · Fixed by #1210
Labels
bug Something isn't working needs-triage

Comments

@louiskhub
Copy link

Describe the bug

The docs specify that xata branch create my_feature has equivalent behaviour to xata branch create my_feature --from main. This is currently not true. The schema is only copied from main if the --from main flag is provided. Otherwise the schema is empty.

To Reproduce

  1. checkout to a new git branch
  2. create new xata branch like so: xata branch create test1
  3. create new xata branch like so: xata branch create test2 --from main

Expected behavior

According to docs, both branches should have the schema from main. But only test2 has the schema from main.

Software version

Using CLI's latest npm version:
@xata.io/[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant