diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-04 16:07:02 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-04 16:07:02 +0100 |
commit | 1de8af907dbced4fde64ee2c7f57527fc43ad1cc (patch) | |
tree | ed6622f4694d8e17633b3de6942b778dc2911bfd /git/repo/base.py | |
parent | 6f55c17f48d7608072199496fbcefa33f2e97bf0 (diff) | |
download | gitpython-1de8af907dbced4fde64ee2c7f57527fc43ad1cc.tar.gz |
Removed unnecessary (non-gitpython) tests and fixed flake80.3.3
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 15 |
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) |