1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/5343150e167e/ changeset: 5343150e167e user: greg date: 2012-06-06 15:48:15 summary: Fix for rendering the url for cloning a tool shed repository. affected #: 1 file diff -r da5b91a86b2f739eb9deb8dc51fe16446e5cda35 -r 5343150e167ea8682f25849e7b01e1f40c4b440d lib/galaxy/webapps/community/controllers/common.py --- a/lib/galaxy/webapps/community/controllers/common.py +++ b/lib/galaxy/webapps/community/controllers/common.py @@ -407,12 +407,13 @@ def generate_clone_url( trans, repository_id ): """Generate the URL for cloning a repository.""" repository = get_repository( trans, repository_id ) - protocol, base = trans.request.base.split( '://' ) + base_url = url_for( '/', qualified=True ).rstrip( '/' ) if trans.user: + protocol, base = base_url.split( '://' ) username = '%s@' % trans.user.username + return '%s://%s%s/repos/%s/%s' % ( protocol, username, base, repository.user.username, repository.name ) else: - username = '' - return '%s://%s%s/repos/%s/%s' % ( protocol, username, base, repository.user.username, repository.name ) + return '%s/repos/%s/%s' % ( base_url, repository.user.username, repository.name ) def generate_metadata_for_changeset_revision( trans, repo, id, ctx, changeset_revision, repo_dir, updating_tip=False ): if updating_tip: # If a push from the command line is occurring, update the repository files on disk before setting metadata. Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.