diff --git a/src/git/status.py b/src/git/status.py index 355d848..361e5d6 100644 --- a/src/git/status.py +++ b/src/git/status.py @@ -91,7 +91,7 @@ def get_commit_hash(cwd: Path | None = None) -> str: def _get_commit_info_impl(cwd: Path | None = None) -> tuple[str, str, datetime]: """Get current commit info - internal implementation.""" message = run_git_command("log", "-1", "--format=%s", cwd=cwd) - author_name = run_git_command("log", "-1", "format=%an", cwd=cwd) + author_name = run_git_command("log", "-1", "--format=%an", cwd=cwd) author_date_str = run_git_command("log", "-1", "--format=%ai", cwd=cwd) try: @@ -159,7 +159,7 @@ def _get_remote_status_impl(cwd: Path | None = None) -> tuple[int, int, str | No else: ahead, behind = 0, 0 - remote_name = run_git_command("rev-parse", "--abbrev-ref", "@{upstream}", cwd=cwd) + remote_name: str | None = run_git_command("rev-parse", "--abbrev-ref", "@{upstream}", cwd=cwd) if remote_name: remote_name = remote_name.split("/")[0] if "/" in remote_name else remote_name else: