@@ -25,13 +25,13 @@ def clone(
2525 ) -> None : ...
2626
2727 @abstractmethod
28- def stage_all (self , repo_path : str ) -> None : ...
28+ def stage_all (self , local_path : str ) -> None : ...
2929
3030 @abstractmethod
3131 def unstage_all (self , local_path : str ) -> None : ...
3232
3333 @abstractmethod
34- def commit (self , repo_path : str , username : str , email : str , message : str ) -> str :
34+ def commit (self , local_path : str , username : str , email : str , message : str ) -> str :
3535 """
3636 Returns SHA1 hash of the new commit
3737 """
@@ -67,11 +67,11 @@ def clone(
6767 with reraise (Exception , IntegrationError ):
6868 porcelain .clone (remote_url , local_path , checkout = checkout , ** optional_args )
6969
70- def stage_all (self , repo_path : str ) -> None :
71- repo = Repo (repo_path )
70+ def stage_all (self , local_path : str ) -> None :
71+ repo = Repo (local_path )
7272 ignore_mgr = IgnoreFilterManager .from_repo (repo )
73- unstaged_files = (fn .decode () for fn in get_unstaged_changes (repo .open_index (), repo_path ))
74- untracked_files = porcelain .get_untracked_paths (repo_path , repo_path , repo .open_index ())
73+ unstaged_files = (fn .decode () for fn in get_unstaged_changes (repo .open_index (), local_path ))
74+ untracked_files = porcelain .get_untracked_paths (local_path , local_path , repo .open_index ())
7575 files = (file for file in chain (unstaged_files , untracked_files ) if not ignore_mgr .is_ignored (file ))
7676 repo .stage (files )
7777
@@ -80,9 +80,9 @@ def unstage_all(self, local_path: str) -> None:
8080 staged_files = chain .from_iterable (porcelain .status (local_path ).staged .values ())
8181 repo .unstage (filename .decode () for filename in staged_files )
8282
83- def commit (self , repo_path : str , username : str , email : str , message : str ) -> str :
83+ def commit (self , local_path : str , username : str , email : str , message : str ) -> str :
8484 author = f"{ username } <{ email } >" .encode ()
85- commit_hash = porcelain .commit (repo = repo_path , author = author , committer = author , message = message .encode ())
85+ commit_hash = porcelain .commit (repo = local_path , author = author , committer = author , message = message .encode ())
8686 return commit_hash .decode ()
8787
8888 def push (
0 commit comments