Skip to content

Commit

Permalink
chore: strip ".git" for GitHubProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Feb 20, 2025
1 parent b35a6a1 commit 541c69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/githarbor/providers/github_provider/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def from_url(cls, url: str, **kwargs: Any) -> GitHubRepository:
msg = f"Invalid GitHub URL: {url}"
raise ValueError(msg)

return cls(parts[0], parts[1], token=kwargs.get("token"))
return cls(parts[0], parts[1].removesuffix(".git"), token=kwargs.get("token"))

@property
def default_branch(self) -> str:
Expand Down

0 comments on commit 541c69b

Please sign in to comment.