daytona icon indicating copy to clipboard operation
daytona copied to clipboard

Checkout to "default" branch fails

Open idagelic opened this issue 10 months ago • 0 comments

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:

  1. Run the server
  2. Add any git provider and run daytona create
  3. Choose a repo and select the "Default branch" option
  4. 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 image

Desktop (please complete the following information):

  • Daytona Version: v0.9.0

idagelic avatar Mar 29 '24 12:03 idagelic