commit/galaxy-central: inithello: Fix for renaming repository.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/424d407c67f7/ changeset: 424d407c67f7 user: inithello date: 2012-11-13 19:56:59 summary: Fix for renaming repository. affected #: 1 file diff -r 447448028a2f7326fc452ee32055de5c58e822f6 -r 424d407c67f7ea4f830317b7ab033815415a5a3b lib/galaxy/webapps/community/controllers/repository.py --- a/lib/galaxy/webapps/community/controllers/repository.py +++ b/lib/galaxy/webapps/community/controllers/repository.py @@ -1676,8 +1676,7 @@ # Change the entry in the hgweb.config file for the repository. old_lhs = "repos/%s/%s" % ( repository.user.username, repository.name ) new_lhs = "repos/%s/%s" % ( repository.user.username, repo_name ) - new_rhs = "%s\n" % repo_dir - trans.app.hgweb_config_manager.change_entry( old_lhs, new_lhs, new_rhs ) + trans.app.hgweb_config_manager.change_entry( old_lhs, new_lhs, repo_dir ) # Change the entry in the repository's hgrc file. hgrc_file = os.path.join( repo_dir, '.hg', 'hgrc' ) self.__change_repository_name_in_hgrc_file( hgrc_file, repo_name ) 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.
participants (1)
-
Bitbucket