<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -39,7 +39,7 @@ class Git::Source::Gitweb
     url = object_url(ref, file)
     response = Net::HTTP.get_response(url)
     if response.is_a? Net::HTTPRedirection
-      if response[&quot;Location&quot;] =~ /[\?;]a=(.*?)($|\&amp;|;)/
+      if response[&quot;Location&quot;] =~ /[\?;]a=(.*?)($|\&amp;|;)/ || response[&quot;Location&quot;] =~ /#{name}.git\/([a-z]+)\//
         type = $1
         # Point to commitdiff and not commitpage when referring a commit
         new_url = response[&quot;Location&quot;].gsub(&quot;a=commit;&quot;, &quot;a=commitdiff;&quot;)</diff>
      <filename>lib/git/sources/gitweb.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7a04714e3153ec0bf9e3d1498c7de70bde7abf9a</id>
    </parent>
  </parents>
  <author>
    <name>Pieter de Bie</name>
    <email>pdebie@ai.rug.nl</email>
  </author>
  <url>http://github.com/pieter/gitbot/commit/77bbb15a79dcfb917fdaf8f87d91b1d17eace5f3</url>
  <id>77bbb15a79dcfb917fdaf8f87d91b1d17eace5f3</id>
  <committed-date>2009-11-03T05:27:12-08:00</committed-date>
  <authored-date>2009-11-03T05:27:12-08:00</authored-date>
  <message>GitWeb source: also parse new gitweb URL's</message>
  <tree>c758326d375990d60fc45403cba053902e1971eb</tree>
  <committer>
    <name>Pieter de Bie</name>
    <email>pdebie@ai.rug.nl</email>
  </committer>
</commit>
