[Enhancement]: Set the remote branch name as the default branch
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:
- Create an empty repository in github
- Access Appsmith
- Create an app
- Integrate the git repository with the app
- 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 - 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.
@nidhi-nair - how will this work with Native Git?