Support git repositories without ".git" suffix

This commit is contained in:
allegroai 2020-01-27 15:43:35 +02:00
parent bef87c7744
commit 788c79a66f

View File

@ -42,7 +42,9 @@ class VcsFactory(object):
:param location: (desired) clone location
"""
url = execution_info.repository
is_git = url.endswith(cls.GIT_SUFFIX)
# We only support git, hg is deprecated
is_git = True
# is_git = url.endswith(cls.GIT_SUFFIX)
vcs_cls = Git if is_git else Hg
revision = (
execution_info.version_num