Show More
@@ -248,8 +248,11 b' class SimpleVCS(object):' | |||||
248 | repo_name, db_repo.repo_type, scm_type) |
|
248 | repo_name, db_repo.repo_type, scm_type) | |
249 | return False |
|
249 | return False | |
250 |
|
250 | |||
251 | return is_valid_repo(repo_name, base_path, |
|
251 | config = db_repo._config | |
252 | explicit_scm=scm_type, expect_scm=scm_type) |
|
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 | def valid_and_active_user(self, user): |
|
257 | def valid_and_active_user(self, user): | |
255 | """ |
|
258 | """ |
@@ -240,7 +240,7 b' def _is_dir_writable(path):' | |||||
240 | return True |
|
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 | Returns True if given path is a valid repository False otherwise. |
|
245 | Returns True if given path is a valid repository False otherwise. | |
246 | If expect_scm param is given also, compare if given scm is the same |
|
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 | :param base_path: |
|
251 | :param base_path: | |
252 | :param expect_scm: |
|
252 | :param expect_scm: | |
253 | :param explicit_scm: |
|
253 | :param explicit_scm: | |
|
254 | :param config: | |||
254 |
|
255 | |||
255 | :return True: if given path is a valid repository |
|
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 | try: |
|
262 | try: | |
262 | if explicit_scm: |
|
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 | else: |
|
266 | else: | |
265 | detected_scms = get_scm(full_path) |
|
267 | detected_scms = get_scm(full_path) | |
266 |
|
268 |
General Comments 0
You need to be logged in to leave comments.
Login now