Mercurial > kallithea
changeset 1407:2744f5b01d00 beta
Allowing indexing job to resolve repos path on its own if not given.
author | Jared Bunting <jared.bunting@peachjean.com> |
---|---|
date | Fri, 01 Jul 2011 17:38:37 -0500 |
parents | a773087f5e42 |
children | 93cffcb6fd54 |
files | rhodecode/lib/indexers/__init__.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/indexers/__init__.py Sat Jul 02 00:10:49 2011 +0200 +++ b/rhodecode/lib/indexers/__init__.py Fri Jul 01 17:38:37 2011 -0500 @@ -45,6 +45,7 @@ from rhodecode.model import init_model from rhodecode.model.scm import ScmModel +from rhodecode.model.repo import RepoModel from rhodecode.config.environment import load_environment from rhodecode.lib import LANGUAGES_EXTENSIONS_MAP from rhodecode.lib.utils import BasePasterCommand, Command, add_cache @@ -89,7 +90,7 @@ init_model(engine) index_location = config['index_dir'] - repo_location = self.options.repo_location + repo_location = self.options.repo_location if self.options.repo_location else RepoModel().repos_path repo_list = map(strip, self.options.repo_list.split(',')) \ if self.options.repo_list else None