appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
33.96k stars 3.66k forks source link

[Bug]: Renaming default branch in remote repo ends up creating new local branch in appsmith instead of updating old branch #27814

Open Parthvi12 opened 12 months ago

Parthvi12 commented 12 months ago

Is there an existing issue for this?

Description

When we rename the default branch from master to master-updated, then sync branches in appsmith, it ends up creating new local branch with name master-updated, and old branchmasterbecomes stale and gives error.

Steps To Reproduce

  1. Connect an app to git, have master branch as default
  2. Go to git repo, rename the default branch to master-updated
  3. Come back to appsmith and sync branches
  4. Observe it creates new branch master-updated as default and master branch is also there which is not functional

Public Sample App

No response

Environment

Release

Issue video log

No response

Version

Release

infinitetrooper commented 2 months ago

Should be resolved as part of Native Git Project