src/eric7/Plugins/VcsPlugins/vcsGit/GitBranchPushDialog.py

branch
eric7
changeset 9971
773ad1f1ed22
parent 9653
e67609152c5e
child 10438
4cd7e5a8b3cf
--- a/src/eric7/Plugins/VcsPlugins/vcsGit/GitBranchPushDialog.py	Tue Apr 04 17:26:54 2023 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsGit/GitBranchPushDialog.py	Wed Apr 05 11:58:22 2023 +0200
@@ -43,6 +43,10 @@
             self.branchComboBox.addItem("")
         else:
             self.branchComboBox.addItem(self.__allBranches)
+        if "main" in branches:
+            if not delete:
+                self.branchComboBox.addItem("main")
+            branches.remove("main")
         if "master" in branches:
             if not delete:
                 self.branchComboBox.addItem("master")

eric ide

mercurial