coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
32.07k stars 1.66k forks source link

[Bug]: Trying to load a docker compose git resource that has no main branch (but master) fails #3592

Open CryptoVaraan opened 2 days ago

CryptoVaraan commented 2 days ago

Error Message and Logs

Pop up message appears: Cloning into '.'... fatal: Remote branch main not found in upstream origin

Steps to Reproduce

  1. Add resource using public repository
  2. Click check repository
  3. Click continue

Example Repository URL

https://github.com/mailcow/mailcow-dockerized

Coolify Version

v4.0.0-beta.345

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04.1 LTS

Additional Information

No response

peaklabs-dev commented 2 days ago

The Mailcow remote branch is called master, not main, so the error message is correct: it cannot find main because you need to change the branch name to master. You have to input the right branch in the UI, did you do that?

CryptoVaraan commented 2 days ago

The default branch can be called main OR master. My point is that the import function ASSUMES the existence of a branch called main. The text also says that you can change the branch AFTER the import, but you don't get that far when it works like this. Maybe there is a way to find out what the default branch is called?

djsisson commented 1 day ago

add /tree/master onto the end of the url