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

UCM should warn the user when they push to share for the first time for a project with a non-main branch #4853

Open
hojberg opened this issue Apr 3, 2024 · 0 comments
Assignees
Labels
codebase-manager / ucm Issues related to the codebase editor CLI application (ucm) push command ucm-ux

Comments

@hojberg
Copy link
Member

hojberg commented Apr 3, 2024

Take this scenario:

.> project.create @hojberg/someProject
@hojberg/someProject> branch /myFeatureBranch
 ... work work ..
@hojberg/someProject> push

Share will end up with a project without a default branch (since myFeatureBranch was pushed, but main never was), and many features will not be enabled.
UCM should display a warning and clear instructions for resolution.

Something like (very rough sketch, included to convey the idea):

I just created @hojberg/someProject with the branch of `myFeatureBranch` on Unison Share.
This new Share project is missing a default branch (it now only has `myFeatureBranch`),
and some features are disabled. Create a default branch by merging your work into `main`
and pushing that when ready.

Related: #4852

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codebase-manager / ucm Issues related to the codebase editor CLI application (ucm) push command ucm-ux
Projects
None yet
Development

No branches or pull requests

2 participants