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

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9576
be9f8e7e42e0
--- a/src/eric7/Plugins/VcsPlugins/vcsGit/GitLogBrowserDialog.py	Sun Nov 06 11:22:39 2022 +0100
+++ b/src/eric7/Plugins/VcsPlugins/vcsGit/GitLogBrowserDialog.py	Mon Nov 07 17:19:58 2022 +0100
@@ -1882,9 +1882,9 @@
         """
         Private slot to create a new branch starting at the selected commit.
         """
+        from .GitBranchDialog import GitBranchDialog
+
         if len(self.logTree.selectedItems()) == 1:
-            from .GitBranchDialog import GitBranchDialog
-
             itm = self.logTree.selectedItems()[0]
             commit = itm.text(self.CommitIdColumn)
             branches = [
@@ -1920,9 +1920,9 @@
         Private slot to create a new branch starting at the selected commit
         and switch the work tree to it.
         """
+        from .GitBranchDialog import GitBranchDialog
+
         if len(self.logTree.selectedItems()) == 1:
-            from .GitBranchDialog import GitBranchDialog
-
             itm = self.logTree.selectedItems()[0]
             commit = itm.text(self.CommitIdColumn)
             branches = [

eric ide

mercurial