Skip to content

Not all remote git branches are being fetched #2580

@elieobeid7

Description

@elieobeid7

To Reproduce

I don't know if this issue is specific to Bitbucket or if it affects any git hosting provider, we're using Bitbucket.

If you have many remote branches and you go to connect your remote branch to Dokploy, you might not find the branch you're looking for. Seems that Dokploy limits the fetch results to 50 or something.

We had to delete many branches just so Dokploy could find the branch we need to connect.

To reproduce:

Create 200 remote branches, and try searching for one at the end of that list.
So for example, Bitbucket orders branch names alphabetically, and it's common to use this branch naming patern fix/bug1, fix/bug2. Create 100 of these branches.

then create a branch called release

You will not find the release branch, simply because, it comes after the fix branches alphabetically, and Dokploy limits the number of branches it fetches from remote git server.

You can use this script to create the branches for testing

Current vs. Expected behavior

  • Current Behavior: Dokploy limits the number of branches it returns from git fetch remote request
  • Expected behavior: Either show every single remote branch without limiting, or allow the users to type the branch name they want to connect to, without forcing them to use this limited select menu dropdown.

Provide environment information

Ubuntu VPS from Hetzner

Which area(s) are affected? (Select all that apply)

Installation

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

No

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions