Show More
@@ -248,8 +248,11 b' class SimpleVCS(object):' | |||
|
248 | 248 | repo_name, db_repo.repo_type, scm_type) |
|
249 | 249 | return False |
|
250 | 250 | |
|
251 | return is_valid_repo(repo_name, base_path, | |
|
252 | explicit_scm=scm_type, expect_scm=scm_type) | |
|
251 | config = db_repo._config | |
|
252 | config.set('extensions', 'largefiles', '') | |
|
253 | return is_valid_repo( | |
|
254 | repo_name, base_path, | |
|
255 | explicit_scm=scm_type, expect_scm=scm_type, config=config) | |
|
253 | 256 | |
|
254 | 257 | def valid_and_active_user(self, user): |
|
255 | 258 | """ |
@@ -240,7 +240,7 b' def _is_dir_writable(path):' | |||
|
240 | 240 | return True |
|
241 | 241 | |
|
242 | 242 | |
|
243 | def is_valid_repo(repo_name, base_path, expect_scm=None, explicit_scm=None): | |
|
243 | def is_valid_repo(repo_name, base_path, expect_scm=None, explicit_scm=None, config=None): | |
|
244 | 244 | """ |
|
245 | 245 | Returns True if given path is a valid repository False otherwise. |
|
246 | 246 | If expect_scm param is given also, compare if given scm is the same |
@@ -251,6 +251,7 b' def is_valid_repo(repo_name, base_path, ' | |||
|
251 | 251 | :param base_path: |
|
252 | 252 | :param expect_scm: |
|
253 | 253 | :param explicit_scm: |
|
254 | :param config: | |
|
254 | 255 | |
|
255 | 256 | :return True: if given path is a valid repository |
|
256 | 257 | """ |
@@ -260,7 +261,8 b' def is_valid_repo(repo_name, base_path, ' | |||
|
260 | 261 | |
|
261 | 262 | try: |
|
262 | 263 | if explicit_scm: |
|
263 |
detected_scms = [get_scm_backend(explicit_scm)( |
|
|
264 | detected_scms = [get_scm_backend(explicit_scm)( | |
|
265 | full_path, config=config).alias] | |
|
264 | 266 | else: |
|
265 | 267 | detected_scms = get_scm(full_path) |
|
266 | 268 |
General Comments 0
You need to be logged in to leave comments.
Login now