]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Make use of the $git_dir variable at sub git_get_project_url_list
[Gitweb] / gitweb.perl
index 1b46035b38a311b0fab30c6d01293e1890e4582f090b7af70adfa1c474d02031..911ecd98cd59485f2d43ba8b0ad913ac4b23d440186aa0bbb1cd4d522a3b700f 100755 (executable)
@@ -1621,7 +1621,7 @@ sub git_get_project_url_list {
        my $path = shift;
 
        $git_dir = "$projectroot/$path";
-       open my $fd, "$projectroot/$path/cloneurl"
+       open my $fd, "$git_dir/cloneurl"
                or return wantarray ?
                @{ config_to_multi(git_get_project_config('url')) } :
                   config_to_multi(git_get_project_config('url'));
@@ -5566,7 +5566,7 @@ XML
                        or next;
 
                # print element (entry, item)
-               my $co_url = href(-full=>1, action=>"commit", hash=>$commit);
+               my $co_url = href(-full=>1, action=>"commitdiff", hash=>$commit);
                if ($format eq 'rss') {
                        print "<item>\n" .
                              "<title>" . esc_html($co{'title'}) . "</title>\n" .
This page took 0.20465 seconds and 4 git commands to generate.