From 5c17e776c62c81d2d1aeb2dfa7ae1b3c9f1d0bcc Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Thu, 21 Dec 2017 17:02:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=BE=D0=BF=D1=80=D0=B5=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20URL=20=D0=B7=D0=B0=D0=BA=D1=80=D1=8B=D1=82=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pym/calculate/lib/utils/git.py b/pym/calculate/lib/utils/git.py index a4341fe..5f3b063 100644 --- a/pym/calculate/lib/utils/git.py +++ b/pym/calculate/lib/utils/git.py @@ -320,11 +320,16 @@ class Git(object): # progressParam = {'fetch': {'part': 4, 'end': False}, # 'checkout': {'part': 4, 'startpart': 3}} + @staticmethod + def is_private_url(url): + return Git.parse_url(url)[0] == Git.GitProtocol.SSH + def trimRepository(self, rpath, cb_progress=None): """ Удалить в репозитории лишнии объекты """ git_dir = self._gitDir(rpath) + head_info = self.getFetchHeadInfo(git_dir) if not head_info or not head_info.get('reference', ''): return False