···55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7788+## [Unreleased]
99+1010+### Added
1111+1212+- support for ssh remotes
1313+814## [0.4.1] - 2024-01-02
9151016### Added
+7-5
issurge/parser.py
···104104105105 def _get_remote_url(self):
106106 try:
107107- return urlparse(
108108- subprocess.run(
109109- ["git", "remote", "get-url", "origin"], capture_output=True
110110- ).stdout.decode()
111111- )
107107+ origin = subprocess.run(
108108+ ["git", "remote", "get-url", "origin"], capture_output=True
109109+ ).stdout.decode()
110110+ # fake an HTTPs URL from a SSH one
111111+ if origin.startswith("git@"):
112112+ origin = origin.replace(":", "/").replace("git@", "https://")
113113+ return urlparse(origin)
112114 except subprocess.CalledProcessError as e:
113115 raise ValueError(
114116 "Could not determine remote url, make sure that you are inside of a git repository that has a remote named 'origin'"