appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Enhancement]: Set the remote branch name as the default branch

Open rhuanbarreto opened this issue 2 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

Irrespective of default branch name configuration you have in your git repository (in my case it's main), the generated default branch when git is integrated in an app is master.

Steps To Reproduce

Given that you have a Github repo with the default branch name configured as main, then follow the steps:

  1. Create an empty repository in github
  2. Access Appsmith
  3. Create an app
  4. Integrate the git repository with the app
  5. The repository will have the main branch set as master

Public Sample App

No response

Environment

Production

Issue video log

No response

Version

Appsmith Business v1.9.37

rhuanbarreto avatar Sep 12 '23 08:09 rhuanbarreto

@rhuanbarreto - Thanks for raising this issue. The reason this is happening right now is that when a new repo is created, the branch doesn't exist yet as you can see in the below image. Since we create our default branch as master, that is being set as the default in your repo. I'll take this up as an enhancement to allow users to name their default branches.

image

infinitetrooper avatar Sep 12 '23 11:09 infinitetrooper

@nidhi-nair - how will this work with Native Git?

infinitetrooper avatar Oct 17 '24 19:10 infinitetrooper