fix: use 'references' instead of 'refs' for pylance even though it's an alias

This commit is contained in:
Really Him
2025-05-12 23:32:58 -04:00
parent c53b53030d
commit abd24f63f8

View File

@@ -111,7 +111,7 @@ def git_log(repo: git.Repo, max_count: int = 10) -> list[str]:
def git_create_branch(repo: git.Repo, branch_name: str, base_branch: str | None = None) -> str:
if base_branch:
base = repo.refs[base_branch]
base = repo.references[base_branch]
else:
base = repo.active_branch