diff --git a/.gitignore b/.gitignore index 723ef36f4e4f32c4560383aa5987c575a30c6535..a47fb1d220a9e03b1282dc4d4300a7c6317011ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.idea \ No newline at end of file +.idea +__pycache__ \ No newline at end of file diff --git a/git_lfs_utils/__init__.py b/git_lfs_utils/__init__.py index eca5d41f97b39b90867843c05b9eb637e1be43f5..2666ce3c0e0bc8ed8359207bee490301677fd468 100644 --- a/git_lfs_utils/__init__.py +++ b/git_lfs_utils/__init__.py @@ -1 +1 @@ -from utils import GitRepo \ No newline at end of file +from git_lfs_utils.git_lfs_utils.utils import GitRepo diff --git a/git_lfs_utils/utils.py b/git_lfs_utils/utils.py index 14e6163efb742ed132722b65f00d336823af62fe..0dabd02e4db34bdb2685b3351d5218d08d4e813a 100644 --- a/git_lfs_utils/utils.py +++ b/git_lfs_utils/utils.py @@ -11,7 +11,7 @@ def update_package_list(): class GitRepo(git.Repo): def __init__(self, repository_path=None, *args, **kwargs): - if repository_path is None: + if repository_path is None or repository_path == ".": starting_path = os.getcwd() path = starting_path else: