From 098d879432e89fe247aba8dbd8bdc90f9cc4bcf8 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Mon, 27 Nov 2017 18:56:44 +0100 Subject: [PATCH] svn: pass in explicit SCM into the call function for faster detection of protocol. --- rhodecode/lib/middleware/simplesvn.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rhodecode/lib/middleware/simplesvn.py b/rhodecode/lib/middleware/simplesvn.py index 384a5094..ada6745d 100644 --- a/rhodecode/lib/middleware/simplesvn.py +++ b/rhodecode/lib/middleware/simplesvn.py @@ -136,11 +136,13 @@ class SimpleSvn(simplevcs.SimpleVCS): # SVN includes the whole path in it's requests, including # subdirectories inside the repo. Therefore we have to search for # the repo root directory. - if not is_valid_repo(repo_name, self.base_path, self.SCM): + if not is_valid_repo( + repo_name, self.base_path, explicit_scm=self.SCM): current_path = '' for component in repo_name.split('/'): current_path += component - if is_valid_repo(current_path, self.base_path, self.SCM): + if is_valid_repo( + current_path, self.base_path, explicit_scm=self.SCM): return current_path current_path += '/'