The branch selector now sends you to the correct url
Dennis Kaarsemaker [Fri, 3 Aug 2012 17:53:02 +0000 (19:53 +0200)]
It used to not escape the branch name, so branches like
seveas/branch_selector_fix were not really reachable via the selector

root/static/js/site.js

index bcf9739..5af7d11 100755 (executable)
@@ -47,7 +47,7 @@ function uriFor(action, sha1) {
 function switchBranch() {
     var branch = jQuery('#branch-list').val(),
         action = branch != '...' ? 'current' : 'heads';
-    document.location.href = uriFor(action, branch);
+    document.location.href = uriFor(action, encodeURIComponent(branch).replace('/', '%2F'));
 }
 
 function compareDiffs(){