chiark / gitweb /
git-svn: require working HTTPS for all Subversion URLs
[fdroidserver.git] / fdroidserver / common.py
index 6b34969fa9b6b415ad6947c577271bac413023dc..938b1c158b8dbc1b6ebefc076f682e9fb283f267 100644 (file)
@@ -1004,6 +1004,9 @@ class vcs_gitsvn(vcs):
             else:
                 remote = self.remote
 
+            if not remote.startswith('https://'):
+                raise VCSException(_('HTTPS must be used with Subversion URLs!'))
+
             gitsvn_args.extend(['--', remote, self.local])
             p = self.git(gitsvn_args)
             if p.returncode != 0: