Plugins/VcsPlugins/vcsGit/GitBranchDialog.py

changeset 6062
926d2ad79e6d
parent 6048
82ad8ec9548c
child 6645
ad476851d7e0
--- a/Plugins/VcsPlugins/vcsGit/GitBranchDialog.py	Sun Jan 07 17:22:37 2018 +0100
+++ b/Plugins/VcsPlugins/vcsGit/GitBranchDialog.py	Mon Jan 08 19:46:53 2018 +0100
@@ -44,8 +44,10 @@
         self.okButton = self.buttonBox.button(QDialogButtonBox.Ok)
         self.okButton.setEnabled(False)
         
-        self.__remoteBranches = [b for b in branchlist if "/" in b]
-        self.__lokalBranches = [b for b in branchlist if "/" not in b]
+        self.__remoteBranches = [b for b in branchlist
+                                 if b.startswith("remotes/")]
+        self.__lokalBranches = [b for b in branchlist
+                                if not b.startswith("remotes/")]
         
         self.branchCombo.clear()
         self.branchCombo.addItem("")

eric ide

mercurial