2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-02 05:26:45 +00:00

fix vcs check

This commit is contained in:
Matthias 2021-11-18 01:30:31 +01:00
parent 4effd76ca0
commit 392b7a4683
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -74,7 +74,7 @@ class PluginConfigInstallSerializer(serializers.Serializer):
if url: if url:
# use custom registration / VCS # use custom registration / VCS
if True in [identifier in url for identifier in ['git+https', 'hg+https', 'svn+svn', '']]: if True in [identifier in url for identifier in ['git+https', 'hg+https', 'svn+svn', ]]:
# using a VCS provider # using a VCS provider
if packagename: if packagename:
command.append(f'{packagename}@{url}') command.append(f'{packagename}@{url}')