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

[Bug]: Can't load compose file from any other branch then main #3025

Open
1 of 2 tasks
Cinzya opened this issue Aug 8, 2024 · 3 comments · Fixed by #3058
Open
1 of 2 tasks

[Bug]: Can't load compose file from any other branch then main #3025

Cinzya opened this issue Aug 8, 2024 · 3 comments · Fixed by #3058

Comments

@Cinzya
Copy link

Cinzya commented Aug 8, 2024

Description

I tried to deploy OpenProject through this repo recommended by the developers, but got the error that the main branch could not be found when trying to load the compose file.

Since this repository doesn't include a main branch, I thought changing the branch in the Source settings would resolve this issue, but was still getting the same error, as it seems it still wants to pull from main.

I fixed the issue by forking the repo and creating a new main branch which worked for my use case. However, I could see this being a problem for people who want to deploy different environments on other branches which use different compose files.

Minimal Reproduction (if possible, example repository)

  1. Create a new Resource using Public Repository
  2. Insert https://github.com/opf/openproject-deploy as the Repository URL
  3. Select Docker Compose as the Build Pack and add /compose for the Base Directory and press Continue
  4. Go into the Source settings and change the branch. e.g. stable/14
  5. Go back to General and Reload Compose File

Exception or Error

Info
Loading docker compose file.
Error
Cloning into '.'...
fatal: Remote branch main not found in upstream origin

Version

v4.0.0-beta.319

Cloud?

  • Yes
  • No
@andrasbacsai
Copy link
Member

This will be fixed in the upcoming version.

@andrebozzo
Copy link

andrebozzo commented Sep 9, 2024

Hi,
I have installed version beta331 but this doesn't seem to work, I still get the error above

Error
Cloning into '.'...
fatal: Remote branch main not found in upstream origin

It's a self hosted version and to be clear i was trying to clone supabase repository on branch master, am I missing something?
Thank you

@peaklabs-dev peaklabs-dev reopened this Sep 9, 2024
@coderjunc
Copy link

This will be fixed in the upcoming version.

I'm still encountering this error: "Cloning into '.'...
fatal: Remote branch main not found in upstream origin."
I'm getting frustrated trying over and over again, and every attempt seems to be futile. Please fix this soon. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants