Skip to content

Commit

Permalink
Merge pull request #9 from canonical/git-extension-fix
Browse files Browse the repository at this point in the history
strip .git extension if provided in repo
  • Loading branch information
PietroPasotti authored Nov 29, 2023
2 parents de6bccb + bb82d04 commit e8e9389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions interface_tester/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ def _collect_interface_test_specs(self) -> InterfaceTestSpec:
)

repo_name = self._repo.split("/")[-1]
if repo_name.endswith(".git"):
repo_name = repo_name.rsplit(".", maxsplit=1)[0]

intf_spec_path = (
Path(tempdir)
/ repo_name
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "pytest-interface-tester"

version = "1.0.4"
version = "1.0.5"
authors = [
{ name = "Pietro Pasotti", email = "[email protected]" },
]
Expand Down

0 comments on commit e8e9389

Please sign in to comment.