Loading lib/galaxy/config/sample/tool_shed.yml.sample +4 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,10 @@ tool_shed: # installation directory. #hgweb_config_dir: null # Default URL prefix for repositories served via hgweb. If running an # external hgweb server you should set this to an empty string. #hgweb_repo_prefix: repos/ # Where Tool Shed repositories are stored. #file_path: database/community_files Loading lib/galaxy/config/schemas/tool_shed_config_schema.yml +8 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,14 @@ mapping: Where the hgweb.config file is stored. The default is the Galaxy installation directory. hgweb_repo_prefix: type: str required: false default: repos/ desc: | Default URL prefix for repositories served via hgweb. If running an external hgweb server you should set this to an empty string. file_path: type: str default: database/community_files Loading lib/tool_shed/util/repository_util.py +1 −1 Original line number Diff line number Diff line Loading @@ -218,7 +218,7 @@ def create_repository( # Create the local repository. init_repository(repo_path=repository_path) # Add an entry in the hgweb.config file for the local repository. lhs = f"repos/{repository.user.username}/{repository.name}" lhs = f"{app.config.hgweb_repo_prefix}{repository.user.username}/{repository.name}" app.hgweb_config_manager.add_entry(lhs, repository_path) # Create a .hg/hgrc file for the local repository. create_hgrc_file(app, repository) Loading Loading
lib/galaxy/config/sample/tool_shed.yml.sample +4 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,10 @@ tool_shed: # installation directory. #hgweb_config_dir: null # Default URL prefix for repositories served via hgweb. If running an # external hgweb server you should set this to an empty string. #hgweb_repo_prefix: repos/ # Where Tool Shed repositories are stored. #file_path: database/community_files Loading
lib/galaxy/config/schemas/tool_shed_config_schema.yml +8 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,14 @@ mapping: Where the hgweb.config file is stored. The default is the Galaxy installation directory. hgweb_repo_prefix: type: str required: false default: repos/ desc: | Default URL prefix for repositories served via hgweb. If running an external hgweb server you should set this to an empty string. file_path: type: str default: database/community_files Loading
lib/tool_shed/util/repository_util.py +1 −1 Original line number Diff line number Diff line Loading @@ -218,7 +218,7 @@ def create_repository( # Create the local repository. init_repository(repo_path=repository_path) # Add an entry in the hgweb.config file for the local repository. lhs = f"repos/{repository.user.username}/{repository.name}" lhs = f"{app.config.hgweb_repo_prefix}{repository.user.username}/{repository.name}" app.hgweb_config_manager.add_entry(lhs, repository_path) # Create a .hg/hgrc file for the local repository. create_hgrc_file(app, repository) Loading