gitlabhq/gitlabhq — pull request #5361 by katafrakt (2013-10-18 10:30:06+00:00)
Title: fix error with @-sign in branch names

A branch with @-sign in name caused gitlab to crash with 404 error and message

```
ActionController::RoutingError (No route matches {:controller=>"projects/refs", :action=>"logs_tree", :project_id=>#, :id=>"v_1_2@25785", :path=>""}):
lib/extracts_path.rb:112:in `assign_ref_vars'
```

or

```
ActionController::RoutingError (No route matches {:action=>"destroy", :controller=>"projects/branches", :project_id=>#, :id=>"v_1_0@24788"}):
app/views/projects/branches/_branch.html.haml:21:in `_app_views_projects_branches__branch_html_haml__473762803366803937_69933361931140'
app/views/projects/branches/recent.html.haml:8:in `block in _app_views_projects_branches_recent_html_haml__1833156651968247551_69933359948360'
app/views/projects/branches/recent.html.haml:7:in `each'
app/views/projects/branches/recent.html.haml:7:in `_app_views_projects_branches_recent_html_haml__1833156651968247551_69933359948360'
```

Such branches are created by git-svn. See: http://stackoverflow.com/questions/11356901/git-svn-clone-spurious-branches

Spotted on 6-1-stable.