Mercurial > kallithea
changeset 6548:28f631e2c757
tests: use the DB set in TEST_DB for git hooks
Obviously the git hooks and the web app need to use the same database.
Therefore, if the web app uses the TEST_DB environment variable, the git hooks
needs to do the same.
author | domruf <dominikruf@gmail.com> |
---|---|
date | Thu, 23 Mar 2017 19:04:21 +0100 |
parents | 36f09fa6446d |
children | f65f8acaca84 |
files | kallithea/lib/hooks.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/hooks.py Sun Mar 26 15:27:16 2017 +0200 +++ b/kallithea/lib/hooks.py Thu Mar 23 19:04:21 2017 +0100 @@ -392,7 +392,7 @@ repo_path = safe_unicode(repo_path) path, ini_name = os.path.split(extras['config']) conf = appconfig('config:%s' % ini_name, relative_to=path) - load_environment(conf.global_conf, conf.local_conf, test_env=False, + conf = load_environment(conf.global_conf, conf.local_conf, test_env=False, test_index=False) engine = engine_from_config(conf, 'sqlalchemy.')