# HG changeset patch # User Marcin Kuzminski # Date 2012-08-08 20:38:01 # Node ID aa89767753a9b7675b87b85c95be1550cc5f93cf # Parent 22f79562836ccf1a0fc5da1f7d0ef59949cb6855 fix redirection on repo create failures diff --git a/rhodecode/controllers/admin/repos.py b/rhodecode/controllers/admin/repos.py --- a/rhodecode/controllers/admin/repos.py +++ b/rhodecode/controllers/admin/repos.py @@ -227,6 +227,7 @@ class ReposController(BaseController): msg = _('error occurred during creation of repository %s') \ % form_result.get('repo_name') h.flash(msg, category='error') + return redirect(url('repos')) #redirect to our new repo ! return redirect(url('summary_home', repo_name=new_repo.repo_name))