From a1e8c27ad80b0460f5bb6250159cfc4850b65edc Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Tue, 16 Oct 2018 08:48:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=20?= =?UTF-8?q?=D1=81=20=D1=83=D0=BA=D0=B0=D0=B7=D0=B0=D0=BD=D0=BD=D1=8B=D0=BC?= =?UTF-8?q?=20=D0=BF=D0=BE=D1=80=D1=82=D0=BE=D0=BC=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?git=20=D1=80=D0=B5=D0=BF=D0=BE=D0=B7=D0=B8=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/calculate/lib/utils/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/calculate/lib/utils/git.py b/pym/calculate/lib/utils/git.py index 7dc52ff..dd83f6f 100644 --- a/pym/calculate/lib/utils/git.py +++ b/pym/calculate/lib/utils/git.py @@ -516,7 +516,7 @@ class Git(object): net_match = re_host.search(url) if net_match: if net_match.group(3): - return int(net_match.group(3)), net_match.group(2) + return int(net_match.group(3)[1:]), net_match.group(2) return net_protocols[net_match.group(1)], net_match.group(2) re_scp = re.compile("(?:[^@]+@)?([^:]+):(//)?") scp_match = re_scp.search(url)