Skip to content

Commit

Permalink
Maybe we don't need the MepoState dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
pchakraborty committed Mar 28, 2024
1 parent 4e250e1 commit 2450ba9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/mepo/repository/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from urllib.parse import urljoin

from mepo.state.state import MepoState
# from mepo.state.state import MepoState
from mepo.utilities import shellcmd
from mepo.utilities import colors
from mepo.state.exceptions import RepoAlreadyClonedError
Expand All @@ -26,9 +26,10 @@ def __init__(self, remote_url, local_path):
else:
self.__remote = remote_url

root_dir = MepoState.get_root_dir()
full_local_path=os.path.normpath(os.path.join(root_dir,local_path))
self.__full_local_path=full_local_path
# root_dir = MepoState.get_root_dir()
root_dir = os.getcwd()
full_local_path = os.path.normpath(os.path.join(root_dir, local_path))
self.__full_local_path = full_local_path
self.__git = 'git -C "{}"'.format(self.__full_local_path)

def get_local_path(self):
Expand Down

0 comments on commit 2450ba9

Please sign in to comment.