daytona
daytona copied to clipboard
Checkout to "default" branch fails
Describe the bug When the user doesn't specify the checkout branch during the daytona create from wizard process or selects "Use the default branch", there is an error in the log saying"failed to clone repository - reference not found" This is likely due to an incorrectly formed repository object property "branch" which is set to an empty string instead of its pointer being nil. Everything works correctly, the log being shown is the issue.
To Reproduce Steps to reproduce the behavior:
- Run the server
- Add any git provider and run daytona create
- Choose a repo and select the "Default branch" option
- There is the error in the workspace creation logs, but the repo is cloned correctly
Expected behavior There shouldn't be an error as everything went as expected - the provider should be sent a "nil" string pointer instead of an empty string
Screenshots
Desktop (please complete the following information):
- Daytona Version: v0.9.0