summaryrefslogtreecommitdiff
path: root/git/repo/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/repo/base.py')
-rw-r--r--git/repo/base.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index d1af26e2..dcf98152 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -6,13 +6,22 @@
from git.exc import InvalidGitRepositoryError, NoSuchPathError
from git.cmd import Git
+from git.refs import (
+ HEAD,
+ Head,
+ Reference,
+ TagReference,
+)
+from git.objects import (
+ Submodule,
+ RootModule,
+ Commit
+)
from git.util import (
Actor,
finalize_process
)
-from git.refs import *
from git.index import IndexFile
-from git.objects import *
from git.config import GitConfigParser
from git.remote import (
Remote,
@@ -659,7 +668,7 @@ class Repo(object):
:return: ``git.Repo`` (the newly created repo)"""
if mkdir and path and not os.path.exists(path):
- os.makedirs(path, 0755)
+ os.makedirs(path, 0o755)
# git command automatically chdir into the directory
git = Git(path)