Show More
@@ -81,7 +81,7 b' class HomeController(BaseController):' | |||||
81 | def branch_tag_switcher(self, repo_name): |
|
81 | def branch_tag_switcher(self, repo_name): | |
82 | if request.is_xhr: |
|
82 | if request.is_xhr: | |
83 | c.rhodecode_db_repo = Repository.get_by_repo_name(c.repo_name) |
|
83 | c.rhodecode_db_repo = Repository.get_by_repo_name(c.repo_name) | |
84 |
|
|
84 | if c.rhodecode_db_repo: | |
85 | return render('/switch_to_list.html') |
|
85 | c.rhodecode_repo = c.rhodecode_db_repo.scm_instance | |
86 | else: |
|
86 | return render('/switch_to_list.html') | |
87 |
|
|
87 | raise HTTPBadRequest() |
General Comments 0
You need to be logged in to leave comments.
Login now