mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-24 17:34:24 +01:00
Fix typing (#247)
This commit is contained in:
@@ -272,7 +272,7 @@ def calculate_dynamic_paths() -> tuple[Path, str, str, str, str, str]:
|
||||
)
|
||||
|
||||
|
||||
def get_git_commit_sha(directory: str) -> Optional[str]:
|
||||
def get_git_commit_sha(directory: Path) -> Optional[str]:
|
||||
try:
|
||||
repo = git.Repo(directory)
|
||||
remote_url = repo.remotes.origin.url
|
||||
|
||||
Reference in New Issue
Block a user