Changed the 'git branch' dialog to work with the 'master' branch as well (e.g. to rename 'master' to 'main'). eric7

Tue, 13 Dec 2022 15:08:14 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 13 Dec 2022 15:08:14 +0100
branch
eric7
changeset 9617
6a32a62e55e7
parent 9616
13aa04c979d7
child 9618
f58ab8c5816b

Changed the 'git branch' dialog to work with the 'master' branch as well (e.g. to rename 'master' to 'main').

src/eric7/Plugins/VcsPlugins/vcsGit/git.py file | annotate | diff | comparison | revisions
--- a/src/eric7/Plugins/VcsPlugins/vcsGit/git.py	Tue Dec 13 14:03:13 2022 +0100
+++ b/src/eric7/Plugins/VcsPlugins/vcsGit/git.py	Tue Dec 13 15:08:14 2022 +0100
@@ -2196,7 +2196,7 @@
             return False, False
 
         dlg = GitBranchDialog(
-            self.gitGetBranchesList(repodir, allBranches=True),
+            self.gitGetBranchesList(repodir, withMaster=True, allBranches=True),
             revision,
             branchName,
             branchOp,

eric ide

mercurial