Show More
@@ -45,6 +45,7 b' from vcs.utils.lazy import LazyProperty' | |||||
45 |
|
45 | |||
46 | from rhodecode.model import init_model |
|
46 | from rhodecode.model import init_model | |
47 | from rhodecode.model.scm import ScmModel |
|
47 | from rhodecode.model.scm import ScmModel | |
|
48 | from rhodecode.model.repo import RepoModel | |||
48 | from rhodecode.config.environment import load_environment |
|
49 | from rhodecode.config.environment import load_environment | |
49 | from rhodecode.lib import LANGUAGES_EXTENSIONS_MAP |
|
50 | from rhodecode.lib import LANGUAGES_EXTENSIONS_MAP | |
50 | from rhodecode.lib.utils import BasePasterCommand, Command, add_cache |
|
51 | from rhodecode.lib.utils import BasePasterCommand, Command, add_cache | |
@@ -89,7 +90,7 b' class MakeIndex(BasePasterCommand):' | |||||
89 | init_model(engine) |
|
90 | init_model(engine) | |
90 |
|
91 | |||
91 | index_location = config['index_dir'] |
|
92 | index_location = config['index_dir'] | |
92 | repo_location = self.options.repo_location |
|
93 | repo_location = self.options.repo_location if self.options.repo_location else RepoModel().repos_path | |
93 | repo_list = map(strip, self.options.repo_list.split(',')) \ |
|
94 | repo_list = map(strip, self.options.repo_list.split(',')) \ | |
94 | if self.options.repo_list else None |
|
95 | if self.options.repo_list else None | |
95 |
|
96 |
General Comments 0
You need to be logged in to leave comments.
Login now