• Sean McGivern's avatar
    Allow browsing branches that end with '.atom' · 1022456b
    Sean McGivern authored
    We need to do two things to support this:
    
    1. Simplify the regex capture in the routing for the CommitsController
       to not exclude the '.atom' suffix. That's a perfectly valid git
       branch name, so we shouldn't blow up if we get it.
    2. Because Rails now can't automatically detect the request format, add
       some code to do so in `ExtractPath` when there is no path. This means
       that, given branches 'foo' and 'foo.atom', the Atom feed for the
       former is unroutable. To fix this: don't do that! Give the branches
       different names!
    1022456b
project_routing_spec.rb 30.3 KB